joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e401
Capabilities:
Read file on windows

Disassembly:
push 0x260
mov eax, 0x44ce8c
call fcn.0043c8ad
mov eax, dword [ebp + 8]
xor esi, esi
push 0x208
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.0043dea0
add esp, 0xc
lea eax, [ebp - 0x238]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x238]
mov dword [ebp - 0x260], esi
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x258], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
lea eax, [ebp - 0x258]
push eax
push ebx
call fcn.0042f301
mov edi, dword [ebp - 0x258]
lea ecx, [edi + 0x80]
push ecx
lea ecx, [ebp - 0x258]
call fcn.0041aa5a
push 0
lea eax, [ebp - 0x260]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x258]
push eax
push edi
sub esi, 0xffffff80
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 0x258]
push ebx
call fcn.00408c65
push edi
push esi
push ebx
call fcn.00408cc6
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.00408bb6
push dword [ebp - 0x260]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x26c], esi
push eax
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], esi
call fcn.0042841e
push dword [ebp - 0x254]
mov byte [ebp - 4], 1
push esi
push ebx
call fcn.0043dea0
add esp, 0xc
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.0042f4f0
cmp dword [eax + 0x14], 0x10
jb 0x42e53a
mov eax, dword [eax]
push 0x40
push eax
push dword [ebp - 0x25c]
call fcn.0043d920
add esp, 0xc
lea ecx, [ebp - 0x250]
call fcn.0042f46b
mov ecx, dword [ebp - 0x26c]
test ecx, ecx
je 0x42e5a3
mov eax, dword [ebp - 0x264]
sub eax, ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x254], eax
cmp eax, 0x1000
jb 0x42e59a
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0042efff
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x25c]
push eax
push ecx
call fcn.0043c81e
pop ecx
pop ecx
push ebx
push 0x44e4d8
mov dword [ebp - 4], 2
call dword [0x44e4dc]
call fcn.0043c85c
ret 4
Function at 0x42f17b
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
cmp dword [ebp + 0x10], edx
jbe 0x42f19f
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [edx + esi]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x42f18c
pop esi
mov eax, ecx
pop ebp
ret 0xc

Function at 0x42f301
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42f32c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42f32c
xor al, al
jmp 0x42f340
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 8
Function at 0x444583
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4526ac
push 0x4526a4
push str.FlsAlloc
push 0x1e
call fcn.00444461
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4445b7
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e308]
call esi
jmp 0x4445bd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x444601
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4526bc
push 0x4526b4
push str.FlsGetValue
push 0x20
call fcn.00444461
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444638
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e308]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x445ecb
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 0x445f68
push ebx
push esi
call fcn.00445e94
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.00444234
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x445f15
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x445f67
push edi
push eax
call fcn.00443f21
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x445f35
call fcn.00443ee7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x445f66
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00444234
add esp, 0x20
test eax, eax
jne 0x445f54
push edi
call fcn.00443ee7
jmp 0x445f5c
push ebx
call fcn.00443ee7
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 0x4cfe90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8d000]
push edi
jmp 0x4cfeaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4cfeb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cfea0
mov eax, 1
add ebx, ebx
jne 0x4cfec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4cfed4
jne 0x4cfef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cfef3
dec eax
add ebx, ebx
jne 0x4cfee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4cfeb8
add ebx, ebx
jne 0x4cfeef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4cff45
xor ecx, ecx
sub eax, 3
jb 0x4cff0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4cff7a
sar eax, 1
mov ebp, eax
jmp 0x4cff16
add ebx, ebx
jne 0x4cff16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cfee4
inc ecx
add ebx, ebx
jne 0x4cff24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cfee4
add ebx, ebx
jne 0x4cff31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4cff26
jne 0x4cff42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4cff26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4cff64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4cff56
jmp 0x4cfea6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4cff64
add edi, ecx
jmp 0x4cfea6
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4cff82
cmp byte [edi], 0x13
jne 0x4cff82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4cff87
lea edi, [esi + 0xcb000]
mov eax, dword [edi]
or eax, eax
je 0x4cffff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xedd4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xedea0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cffb4
mov ecx, edi
jns 0x4cffe3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xedea4]
or eax, eax
je 0x4cfff9
mov dword [ebx], eax
add ebx, 4
jmp 0x4cffd1
call dword [esi + 0xedeb4]
mov ebp, dword [esi + 0xedea8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d0033
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x1000fff4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10010003
pop dword [ebp - 0xc]
mov eax, 0x99dcc6b3
sub eax, 0x89dbc6b0
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x39e19
push 0
mov eax, 0xcded653e
sub eax, 0xbdec03fe
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x473e
mov ebx, eax
mov esi, 0x10024400
add esi, dword [ebp - 0xc]
mov edi, 0x9cf43709
add edi, 0xa71884d4
add dword [ebp - 8], 0x69e631fd
mov edx, dword [esi]
xor dword [ebp - 8], 0x3309ede6
sub edx, edi
xor dword [ebp - 4], 0xcfe6e35e
mov dword [ebx], edx
mov dword [ebp - 8], 0xdf04b637
add ebx, 0x876f0412
sub ebx, 0x876f040e
add esi, 4
loop 0x10010056
add eax, 0x2ac73294
sub eax, 0x2ac622c9
mov ebx, eax
add eax, 5
mov ecx, 0x8b359647
add ecx, 0x84ca69b9
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x404ed0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x4238a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
cmp dword [0x42b444], 0
jne 0x4238c4
push 0x1019
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x4238c4
xor eax, eax
jmp 0x4238f9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp eax, 0xfffffffe
je 0x4238d3
xor eax, eax
jmp 0x4238f9
push 0x11
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0x1f4
jle 0x4238f1
mov eax, section..text
sub eax, 0x51615
mov dword [0x42b448], eax
mov eax, dword [0x42b448]
add eax, 4
mov esp, ebp
pop ebp
ret

Function at 0x423a60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x423a78
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x423b1c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x423b17
mov ecx, dword [ebp - 8]
push ecx
call fcn.00423f80
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x423ad6
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x423ad6
xor eax, eax
jmp 0x423b1c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x423a6f
mov esp, ebp
pop ebp
ret
Function at 0x1005560e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1005561d
pop dword [ebp - 0xc]
mov eax, 0x1005561d
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xfa8ab281
sub dword [ebp - 0x1c], 0xac386d36
mov dword [ebp - 0x18], 0xc4a98623
add dword [ebp - 0x18], 0x6d89c622
mov dword [ebp - 0x14], 0x88a13b6d
add dword [ebp - 0x14], 0xc3ab08c1
mov dword [ebp - 0x10], 0xa714f8a6
add dword [ebp - 0x10], 0x58eb075a
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x1b9a04e5
sub eax, 0xb9404d5
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xbeae551f
sub dword [ebp - 0x1c], 0x4a3bebc9
mov dword [ebp - 0x18], 0x66cfd031
add dword [ebp - 0x18], 0xda9c9144
mov dword [ebp - 0x14], 0x115ecea9
add dword [ebp - 0x14], 0x52109dc3
mov dword [ebp - 0x10], 0x1a6d5b5c
add dword [ebp - 0x10], 0xe592a4a4
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x5a756
push 0
call eax
mov ecx, 0x5a93
mov edi, eax
mov ebx, 0x1eb5ffea
add ebx, 0xf152bc16
add ebx, dword [ebp - 0xc]
mov edx, 0x6da0ef69
xor dword [ebp - 4], esi
mov esi, dword [ebx]
xor dword [ebp - 4], esi
xor esi, edx
sub dword [ebp - 4], edi
mov dword [edi], esi
add edi, 0x3468aac4
add edi, 0xcb975540
add ebx, 4
loop 0x10055729
add eax, 0x15d1f
mov ebx, eax
add eax, 0x2dc9cfaf
sub eax, 0x2dc9cfaa
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x403f90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x5fdfec]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x10], edx
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x4040d8
mov esi, dword [ebp + 8]
test esi, esi
je 0x4040d8
test edi, edi
je 0x4040d8
push 0x54
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00569490
push 0x80
lea eax, [esp + 0x90]
mov byte [esp + 0x80], 0
xorps xmm0, xmm0
mov dword [esp + 0x89], 0
push 0
push eax
movq qword [esp + 0x89], xmm0
mov word [esp + 0x95], 0
mov byte [esp + 0x97], 0
call fcn.00569490
push dword [esp + 0x2c]
mov edx, ebx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0x67452301
mov dword [esp + 0x40], 0xefcdab89
mov dword [esp + 0x44], 0x98badcfe
mov dword [esp + 0x48], 0x10325476
call fcn.004021c0
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x34]
call fcn.00402290
push edi
push dword [ebp + 0xc]
lea edx, [esp + 0x34]
push esi
lea ecx, [esp + 0xa8]
call fcn.00402d70
add esp, 0x28
test eax, eax
jne 0x4040d8
cmp dword [esp + 0x10], 0x10
jne 0x4040d8
lea ecx, [esp + 0x70]
lea edx, [esp + 0x80]
lea esi, [eax + 0xc]
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4040d8
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4040b0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00551c44
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x104]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00551c44
mov esp, ebp
pop ebp
ret
Function at 0x407e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592748
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5fdfec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x407f99
cmp byte [ebx + 0x3d], 0
je 0x407f99
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x407e59
xor al, al
jmp 0x407f9b
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004076c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407ecd
sub eax, 1
je 0x407ed1
sub eax, 2
je 0x407f8b
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00405a70
mov al, bl
jmp 0x407f9b
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x407f06
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0056f378
add esp, 0x10
cmp esi, eax
jne 0x407ebc
mov ecx, dword [ebp - 0x14]
cmp byte [ebx + 0x3d], 0
je 0x407f8b
test esi, esi
jne 0x407e81
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
sub eax, edx
cmp eax, 8
jbe 0x407f81
lea esi, [edx + 8]
cmp esi, 0xfffffffe
ja 0x407f81
cmp ecx, esi
jae 0x407f68
push edx
push esi
lea ecx, [ebp - 0x28]
call fcn.00408cc0
mov ecx, dword [ebp - 0x14]
test esi, esi
je 0x407e81
push 0
push 8
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
call fcn.00408770
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
jmp 0x407e7e
test esi, esi
jne 0x407f42
cmp ecx, 0x10
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
jmp 0x407e7e
push str.string_too_long
call fcn.00552f1a
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00405a70
mov al, bl
jmp 0x407f9b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551c44
mov esp, ebp
pop ebp
ret
Function at 0x40d950
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592b78
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5fdfec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x700074
mov dword [ebp - 0x28], 0x680033
mov dword [ebp - 0x24], 0x6c0065
mov dword [ebp - 0x20], 0x650070
mov dword [ebp - 0x1c], 0x2e0072
mov dword [ebp - 0x18], 0x610064
mov dword [ebp - 0x14], 0x74
call fcn.0040d1a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push ecx
mov edx, eax
mov ecx, esi
call fcn.0040e3b0
mov ecx, dword [ebp - 0x34]
add esp, 4
cmp ecx, 8
jb 0x40d9e9
inc ecx
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
call fcn.00408400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551c44
mov esp, ebp
pop ebp
ret 4

Function at 0x40dbb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x40dbd0
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 0xc
Function at 0x4114c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov eax, dword [0x5fdfec]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x41155b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x208
mov dword [esp + 0x10], eax
lea eax, [esp + 0x66c]
push 0
push eax
call fcn.00569490
add esp, 0xc
lea eax, [esp + 0x668]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41155b
push 0x228
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x22c
push 0
push eax
call fcn.00569490
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x411572
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.00551c44
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
nop word [eax + eax]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xc], eax
je 0x411611
test eax, eax
je 0x411611
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x41160b
push 0x424
lea eax, [esp + 0x248]
mov dword [esp + 0x244], 0x428
push 0
push eax
call fcn.00569490
add esp, 0xc
lea eax, [esp + 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x4115fc
lea eax, [esp + 0x668]
push eax
lea eax, [esp + 0x464]
push eax
call fcn.0056f4ed
add esp, 8
movzx ebx, bl
test eax, eax
mov eax, 1
cmove ebx, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test bl, bl
jne 0x411625
jmp 0x411611
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x411580
push edi
call esi
mov ecx, dword [esp + 0x874]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00551c44
mov esp, ebp
pop ebp
ret
Function at 0x412e20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593128
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5fdfec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x412f43
cmp dword [ebp - 0x14], 2
jl 0x412ec6
push dword [edi + 4]
lea ecx, [ebp - 0x2c]
call fcn.00405a10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00412f60
mov dword [esi + 0x194], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x412eb0
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00408400
mov eax, dword [esi + 0x194]
mov ecx, 0xea60
cmp eax, ecx
cmovb ecx, eax
mov dword [esi + 0x194], ecx
cmp dword [ebp - 0x14], 3
jl 0x412f08
push dword [edi + 8]
lea ecx, [ebp - 0x2c]
call fcn.00405a10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00412f60
mov dword [esi + 0x198], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x412f08
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00408400
cmp dword [ebp - 0x14], 4
jl 0x412f43
push dword [edi + 0xc]
lea ecx, [ebp - 0x44]
call fcn.00405a10
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 2
call fcn.00412f60
mov dword [esi + 0x148], eax
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x412f43
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00408400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551c44
mov esp, ebp
pop ebp
ret

Function at 0x418860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00427d16

Function at 0x418cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x418ce5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x418d26
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x418d22
nop word [eax + eax]
cmp esi, edx
jae 0x418d26
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x418d10
cmp esi, edx
jb 0x418d2b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret