joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d199f
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5fe480]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp dword [0x606614], ebx
jne 0x4d19fa
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4d19e0
xor al, al
jmp 0x4d1a02
cmp byte [esp + 0x10], 2
jne 0x4d19f2
mov eax, dword [esp + 0x10]
shr eax, 8
cmp al, 2
je 0x4d19fa
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4d19dc
inc dword [0x606614]
mov al, 1
mov byte [esi + 0x1c], al
cmp al, bl
jne 0x4d1a1e
xor ecx, ecx
push 0x5d4b98
inc ecx
call fcn.00463ba1
pop ecx
push 0xffffffffffffffff
call fcn.0054c3f7
or dword [esi + 0x64], 0xffffffff
push 0x10
lea edi, [esi + 0x20]
push ebx
push edi
mov byte [esi + 0x1d], bl
mov dword [esi + 8], ebx
call fcn.00543fe0
add esp, 0xc
push 2
pop eax
mov word [edi], ax
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x10
mov dword [esi + 0x6c], eax
push ebx
add esi, 0x30
push esi
call fcn.00543fe0
mov ecx, dword [esp + 0x1b0]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005413de
mov esp, ebp
pop ebp
ret

Function at 0x4d1c5b
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5fe480]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x64], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jne 0x4d1c98
mov eax, dword [ebx + 0x5c]
mov ecx, eax
xor edx, edx
dec ecx
je 0x4d1c88
dec ecx
jne 0x4d1c8b
push 0x11
jmp 0x4d1c8a
push 6
pop edx
push edx
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x64]
cmp eax, 0xffffffff
jne 0x4d1ca7
xor al, al
jmp 0x4d1d2c
cmp byte [ebx + 0x68], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4d1cda
push 1
lea ecx, [ebp - 0x15]
push ecx
push 4
push 0xffff
push eax
mov byte [ebx + 0x68], 1
mov byte [ebp - 0x15], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4d1cda
call edi
mov dword [ebx + 0x60], eax
push esi
push 0x10
pop esi
push esi
push dword [ebp - 0x1c]
push dword [ebx + 0x64]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4d1cf7
call edi
mov dword [ebx + 0x60], eax
jmp 0x4d1d10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x64]
mov dword [ebp - 0x20], esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4d1d14
xor al, al
jmp 0x4d1d2a
cmp dword [ebx + 0x5c], 2
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x4d1d28
mov byte [ebx + 0x1d], 1
mov al, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005413de
leave
ret 4
Function at 0x4d1f00
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5fe480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
push ebx
push esi
xor esi, esi
inc esi
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x20c], esi
imul edx, edx, 0x3e8
mov dword [ebp - 0x214], eax
xor eax, eax
mov dword [ebp - 0x210], edx
cmp byte [ebp + 8], bl
je 0x4d1f63
lea ecx, [ebp - 0x108]
jmp 0x4d1f69
lea eax, [ebp - 0x108]
cmp dword [ebp + 0xc], ebx
jl 0x4d1f76
lea edx, [ebp - 0x214]
jmp 0x4d1f78
xor edx, edx
push edx
lea edx, [ebp - 0x20c]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jne 0x4d1f91
xor eax, eax
jmp 0x4d1fc3
cmp eax, 0xffffffff
jne 0x4d1f9b
or eax, 0xffffffff
jmp 0x4d1fc3
mov ebx, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x64]
call ebx
test eax, eax
je 0x4d1fc1
lea eax, [ebp - 0x108]
push eax
push dword [edi + 0x64]
call ebx
test eax, eax
je 0x4d1f96
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005413de
leave
ret 8

Function at 0x4d1fd3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.004687d7
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov byte [ebp - 1], 1
jmp 0x4d2060
jle 0x4d2003
add dword [ebp - 8], eax
sub dword [ebp + 0xc], eax
add dword [ebp + 8], eax
jmp 0x4d2010
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4d207b
cmp dword [ebp + 0xc], 0
je 0x4d2071
cmp byte [ebp - 1], 0
mov ecx, dword [ebp + 0x10]
jne 0x4d204e
test ecx, ecx
js 0x4d204e
lea esi, [ebp - 0x10]
call fcn.004687d7
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
push 0
push 0x2710
push ecx
push eax
call fcn.0055e1a0
mov ecx, dword [ebp + 0x10]
sub ecx, eax
test ecx, ecx
jle 0x4d2071
push ecx
push 1
call fcn.004d1f00
mov byte [ebp - 1], 0
test eax, eax
js 0x4d207b
je 0x4d2071
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x64]
call ebx
test eax, eax
jne 0x4d1ff6
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
or eax, 0xffffffff
jmp 0x4d2074

Function at 0x5413de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5fe480]
jne 0x5413e8
repz ret
jmp fcn.00547b4b
Function at 0x559e03
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5fe480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00548808
and dword [ebp - 0x14], 0
cmp dword [0x6062fc], 0
mov dword [ebp - 0x18], eax
jne 0x559eb6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x559f5e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x559f5e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x6062fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x606300], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x606304], eax
call edi
push eax
call esi
mov dword [0x60630c], eax
test eax, eax
je 0x559eb6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x606308], eax
mov eax, dword [0x606308]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x559f0f
cmp dword [0x60630c], ecx
je 0x559f0f
push eax
call esi
push dword [0x60630c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x559f0f
test ebx, ebx
je 0x559f0f
call edi
test eax, eax
je 0x559f06
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x559f06
test byte [ebp - 8], 1
jne 0x559f0f
or dword [ebp + 0x10], 0x200000
jmp 0x559f42
mov eax, dword [0x606300]
cmp eax, dword [ebp - 0x18]
je 0x559f42
push eax
call esi
test eax, eax
je 0x559f42
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x559f42
mov eax, dword [0x606304]
cmp eax, dword [ebp - 0x18]
je 0x559f42
push eax
call esi
test eax, eax
je 0x559f42
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6062fc]
call esi
test eax, eax
je 0x559f5e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x559f60
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005413de
leave
ret

Function at 0x563150
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x563176
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x563160
ret
Function at 0x575460
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x575492
lea esp, [esp]
test cl, 3
je 0x575492
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x59fc30]
add ecx, 1
sub esi, 1
jne 0x575470
cmp esi, 0x20
push ebx
push edi
jb 0x57567c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5a0030]
xor edx, dword [ebx*4 + 0x5a0430]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x59fc30]
add ecx, 4
xor edx, dword [eax*4 + 0x5a0830]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5a0030]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5a0430]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x59fc30]
add ecx, 4
xor eax, dword [edx*4 + 0x5a0830]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5a0030]
xor edx, dword [ebx*4 + 0x5a0430]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x59fc30]
xor edx, dword [eax*4 + 0x5a0830]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5a0030]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5a0430]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x59fc30]
xor eax, dword [edx*4 + 0x5a0830]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5a0030]
xor edx, dword [ebx*4 + 0x5a0430]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x59fc30]
xor edx, dword [eax*4 + 0x5a0830]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5a0030]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5a0430]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x59fc30]
and edx, 0xff
xor eax, dword [edx*4 + 0x5a0830]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5a0030]
xor edx, dword [ebx*4 + 0x5a0430]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x59fc30]
add ecx, 4
xor edx, dword [eax*4 + 0x5a0830]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5a0030]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5a0430]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x59fc30]
and edx, 0xff
xor eax, dword [edx*4 + 0x5a0830]
sub edi, 1
jne 0x5754a2
cmp esi, 4
jb 0x5756c9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5a0030]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x5a0430]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x59fc30]
and eax, 0xff
xor edi, dword [eax*4 + 0x5a0830]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x575686
test esi, esi
pop edi
pop ebx
je 0x5756ed
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x59fc30]
add ecx, 1
sub esi, 1
jne 0x5756d0
not eax
pop esi
ret
Function at 0x575b20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x575b9e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00543bc0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x575b71
sub eax, ebx
jmp 0x575b73
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x575b62
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x575b92
sub eax, ebx
jmp 0x575b94
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x575b83
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x575c72
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.005758a0
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x575be9
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x575bfd
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x575b26
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x575c72
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x575c41
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x575c24
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.00543fe0
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x575c72
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x575c5b
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.00543fe0
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x402c82
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x413724
call fcn.00408cb8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor edi, edi
push dword [esi + 4]
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402cc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov ecx, str.CDialog::Create_..._Window_already_exists
push 0x415568
push eax
mov dword [ebp - 0x1c], ecx
call fcn.00409574
push 8
mov dword [esi + 0x14], 1
call fcn.00409535
mov edx, dword [esi]
pop ecx
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
call dword [edx + 0x30]
cmp dword [esi + 0x18], edi
je 0x402d04
call fcn.00403ec4
mov eax, dword [eax + 4]
push edi
push 0x402f92
push dword [esi + 8]
push dword [esi + 0x10]
push eax
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
jmp 0x402d1f
call fcn.00403ec4
mov eax, dword [eax + 4]
push edi
push 0x402f92
push dword [esi + 8]
push dword [esi + 0xc]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
cmp eax, edi
je 0x402d32
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push dword [ebp - 0x14]
call fcn.00408580
mov eax, dword [0x417374]
pop ecx
mov dword [ebp - 0x14], eax
call fcn.00403ec4
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi + 4], edi
mov eax, ebx
jmp 0x402d6f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40359b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4137aa
call fcn.00408cb8
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00404016
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.0040325d
lea edi, [esi + 0x20]
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.00404016
mov dword [edi], 0x4145c0
and dword [esi + 0x2c], 0
and dword [esi + 0x30], 0
and dword [esi + 0x34], 0
mov byte [ebp - 4], 2
mov dword [esi], 0x414534
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, esi
call fcn.004036a5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x403eca
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x413820
call fcn.00408cb8
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi + 8], al
mov dword [esi], 0x4145fc
cmp dword [0x41ec9c], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], eax
jne 0x403f39
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x417374], eax
jne 0x403f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov ecx, str.CApp::CApp__Failed_to_allocate_TLS_Index
push 0x415568
push eax
mov dword [ebp - 0x18], ecx
call fcn.00409574
mov dword [0x41ec9c], esi
mov byte [esi + 8], 1
jmp 0x403f6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov ecx, str.Error___An_instance_of_CApp__or_a_class_derrived_from_CApp__is_already_running
push 0x415568
push eax
mov dword [ebp - 0x20], ecx
call fcn.00409574
mov ecx, dword [ebp + 8]
call fcn.00403ec3
mov eax, 0x403f6c
ret
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x404e78
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
push edi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push 0x404edd
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
jne 0x404ec3
xor eax, eax
jmp 0x404ed7
push 0xffffffffffffffff
push edi
call fcn.00406b40
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
leave
ret 0x14

Function at 0x406633
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x100]
push eax
push 0
push esi
push 0x4066be
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0xfc], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret

Function at 0x406660
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xfc], 0
je 0x4066bc
mov eax, dword [esi + 0x100]
test eax, eax
je 0x4066bc
push 0
push 0
push 0x2711
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x32
push dword [esi + 0xfc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4066a9
push 0xfffffffffffffffe
push dword [esi + 0xfc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0xfc], 0
pop esi
ret
Function at 0x406af6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0xc]
push 0
push eax
push 0x406978
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x406b3d
push 0xffffffffffffffff
push edi
call fcn.00406b40
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
leave
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x100346c9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10034708
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10034708
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10034708
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10034708
cmp dword [ecx + 0x74], 0xe
jbe 0x10034708
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100372fb
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 0x10037398
push ebx
push esi
call fcn.100372c4
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.10037258
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10037345
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10037397
push edi
push eax
call fcn.10038224
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10037365
call fcn.10035da0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10037396
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10037258
add esp, 0x20
test eax, eax
jne 0x10037384
push edi
call fcn.10035da0
jmp 0x1003738c
push ebx
call fcn.10035da0
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 0x10037605
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003fa10
push 0x1003fa08
push str.FlsAlloc
push 0x1f
call fcn.10037521
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10037639
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003d174]
call esi
jmp 0x1003763f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10037683
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003fa20
push 0x1003fa18
push str.FlsGetValue
push 0x21
call fcn.10037521
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100376ba
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003d174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100376c2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003fa28
push 0x1003fa20
push str.FlsSetValue
push 0x22
call fcn.10037521
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100376fc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1003d174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1003cc50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003cc7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003cc7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret