joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435e00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x483b48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x435e39
inc eax
mov dword [esi + 0x10], eax
jmp 0x435f4c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x435e4d
mov eax, 0xffffffc7
jmp 0x435f4e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x435e5e
cmp dword [esi + 8], eax
jne 0x435e4d
cmp dword [esi + 8], eax
jne 0x435e77
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x435e77
mov eax, 0xffffffc7
jmp 0x435f4e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x435e8b
push eax
mov ecx, ebx
call fcn.00435630
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00403350
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x435ebc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00403370
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00434da0
test eax, eax
mov dword [esp + 0x38], eax
je 0x435eef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x48c6f0
call fcn.00403550
mov eax, dword [esp + 0x38]
jmp 0x435f4e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00435c60
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x435f33
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00435c80
mov esi, eax
test esi, esi
jne 0x435f63
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00435c60
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x435f05
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x48c6f0
call fcn.00403550
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x48c6f0
call fcn.00403550
mov eax, esi
jmp 0x435f4e

Function at 0x43a970
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43a9d0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43a9d0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43a9d0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43a9d0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43aa10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x446550
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047cafc
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00445eb0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047ca2a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004792eb
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004792eb
push 1
push 0
push 0
mov ecx, esi
call fcn.00479293
push 1
push 0
push 1
mov ecx, esi
call fcn.00479293
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047cb6e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4466d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047cafc
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00445eb0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047ca2a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x446794
cmp dword [esp + 0x40], 1
jne 0x446792
cmp ecx, eax
jge 0x446794
mov eax, ecx
cmp eax, 0xc8
jge 0x4467a0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00446550
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047cb6e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x446f90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484503
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047770b
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047cda4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047e2c0
test eax, eax
je 0x4470ac
mov ecx, dword [esp + 0x3c]
call fcn.0047cdd1
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x447070
push edi
mov ecx, esi
call fcn.0047a437
mov ecx, esi
call fcn.00447250
cmp dword [esp + 0x38], 1
jne 0x4470a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047a572
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4492b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4492e3
push esi
call fcn.00457660
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4492dc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x449369
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x449352
mov eax, dword [esi + 8]
test eax, eax
je 0x449307
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44934e
cmp eax, 2
je 0x449352
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4492fa
cmp eax, 3
je 0x44932d
cmp eax, 1
jne 0x4492fa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4492fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4492fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00449390
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x449378
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00449390
add esp, 4
pop esi
ret

Function at 0x449c10
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x449c31
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x449c31
mov eax, dword [eax + 0x44]
test eax, eax
je 0x449c31
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x478501
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x478539
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004765b8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00476590
jmp 0x478545
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x479bef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x479c31
call fcn.0047f6a6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x479c31
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x479c28
xor eax, eax
jmp 0x479c39
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00479c3f
pop edi
pop esi
pop ebx
ret 4
Function at 0x47fbd6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47fc04
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47fc22
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047fb3c
jmp 0x47fc22
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47fc22
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047fb3c
test edi, edi
mov eax, edi
jne 0x47fc0c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40406c], eax
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.mifedount
push str.Deltapo
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b33
xor eax, eax
jmp 0x401b4e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4023b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4284a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 1
push eax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40243e
xor eax, eax
push eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov byte [ebp - 7], al
lea eax, [ebp - 0x1c]
push eax
push 0x12
lea ecx, [ebp - 0x18]
push ecx
push ebx
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [ebp - 0x18]
test al, al
je 0x402428
push 1
movzx edx, al
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 8]
cmp al, 0x20
je 0x402451
cmp al, 0x18
je 0x402451
cmp al, 8
je 0x402451
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e316
mov esp, ebp
pop ebp
ret 4
mov cl, byte [ebp - 0x16]
cmp cl, 2
je 0x40245e
cmp cl, 1
jne 0x402437
push esi
movzx esi, al
movzx eax, word [ebp - 0xc]
shr esi, 3
imul esi, eax
push edi
movzx edi, word [ebp - 0xa]
imul edi, esi
xor eax, eax
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.00402320
mov cl, byte [ebp - 7]
and cl, 0x30
cmp cl, 0x20
jne 0x4024a7
mov esi, dword [ebp - 0x30]
push 0
lea edx, [ebp - 0x1c]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4024d5
movzx eax, word [ebp - 0xa]
xor edi, edi
test eax, eax
jle 0x4024d2
sub eax, edi
dec eax
imul eax, esi
add eax, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [ebp - 0xa]
inc edi
cmp edi, eax
jl 0x4024b1
mov esi, dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0xa]
movzx eax, word [ebp - 0xc]
mov edi, dword [ebp - 0x20]
push edx
push eax
mov ecx, edi
call fcn.00401de0
test al, al
jne 0x402516
test esi, esi
je 0x402501
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e316
mov esp, ebp
pop ebp
ret 4
movzx ecx, byte [ebp - 8]
movzx edx, word [ebp - 0xa]
movzx eax, word [ebp - 0xc]
shr ecx, 3
push ecx
push edx
push eax
push esi
mov ecx, edi
call fcn.004011e0
test esi, esi
je 0x40253d
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0041e316
mov esp, ebp
pop ebp
ret 4
Function at 0x40c060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f868
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4284a8]
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 edi, ecx
cmp dword [edi + 0x44], 0
je 0x40c187
cmp byte [edi + 0x49], 0
je 0x40c187
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40c17b
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40c0d6
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
lea ebx, [edi + 0x4c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x40c0f6
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40c11b
dec eax
je 0x40c11f
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40c176
jmp 0x40c182
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x40c12f
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40c159
cmp edx, 0x10
jae 0x40c13e
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40c173
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40c17f
test esi, esi
jne 0x40c0ea
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040b9a0
jmp 0x40c0e4
lea ecx, [ebp - 0x2c]
call fcn.00404750
xor al, al
jmp 0x40c189
lea ecx, [ebp - 0x2c]
call fcn.00404750
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.0041e316
mov esp, ebp
pop ebp
ret
Function at 0x4179c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4202f6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4284a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
fld dword [edi + 0x30]
fstp dword [esi + 0x30]
xor ebx, ebx
fld dword [edi + 0x34]
push 0xffffffffffffffff
lea ecx, [esi + 0x38]
fstp dword [esi + 0x34]
push ebx
lea eax, [edi + 0x38]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.004048c0
push 0xffffffffffffffff
lea ecx, [esi + 0x54]
push ebx
lea edx, [edi + 0x54]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov dword [ebp - 4], ebx
mov byte [ecx], bl
call fcn.004048c0
push 0xffffffffffffffff
lea ecx, [esi + 0x70]
push ebx
add edi, 0x70
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ebp - 4], 1
mov byte [ecx], bl
call fcn.004048c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c220
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420940
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x4284a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [esi + 0x4c], 0xf
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
mov dword [ebp - 4], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
push 0x30
mov byte [ebp - 4], 8
mov dword [esi + 0xdc], ebx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41c3cd
mov dword [esi + 0xd8], eax
mov dword [eax], eax
mov eax, dword [esi + 0xd8]
mov dword [eax + 4], eax
mov eax, dword [esi + 0xd8]
mov dword [eax + 8], eax
mov eax, dword [esi + 0xd8]
mov byte [eax + 0x2c], 1
mov ecx, dword [esi + 0xd8]
mov byte [ecx + 0x2d], 1
push 0x24
mov byte [ebp - 4], 9
mov dword [esi + 0xec], ebx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41c3a8
fldz
mov dword [esi + 0xe8], eax
mov dword [eax], eax
mov eax, dword [esi + 0xe8]
mov dword [eax + 4], eax
mov eax, dword [esi + 0xe8]
mov dword [eax + 8], eax
mov edx, dword [esi + 0xe8]
mov byte [edx + 0x20], 1
mov eax, dword [esi + 0xe8]
mov byte [eax + 0x21], 1
fst dword [esi + 0x24]
fst dword [esi + 0x20]
mov byte [esi], bl
fst dword [esi + 0x1c]
mov word [esi + 1], bx
fst dword [esi + 0x34]
mov byte [esi + 3], bl
fst dword [esi + 0x30]
mov dword [esi + 4], ebx
fst dword [esi + 0x2c]
mov dword [esi + 8], ebx
fstp dword [esi + 0x28]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4237e0
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4237e0
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3
Function at 0x41e316
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4284a8]
jne 0x41e320
repz ret
jmp fcn.0041eaaa
Function at 0x1e2279f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1e2377c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
call dword [sym.imp.python27.dll_PyGILState_Ensure]
mov esi, eax
xor ecx, ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [eax - 0x18]
push edi
mov edi, dword [esp + 0x28]
push edi
push 0x1e244a54
add eax, 0xffffffe8
push ecx
push str.AddConnection
push eax
mov eax, dword [edx + 0x40]
mov dword [esp + 0x30], ecx
call eax
push esi
mov edi, eax
call dword [sym.imp.python27.dll_PyGILState_Release]
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x1e227a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1e2377da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
call dword [sym.imp.python27.dll_PyGILState_Ensure]
mov esi, eax
xor ecx, ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov edx, dword [eax - 0x18]
push edi
mov edi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
push edi
push 0x1e244a68
add eax, 0xffffffe8
push ecx
push str.ReleaseConnection
push eax
mov eax, dword [edx + 0x40]
mov dword [esp + 0x34], ecx
call eax
push esi
mov edi, eax
call dword [sym.imp.python27.dll_PyGILState_Release]
mov ecx, dword [esp + 0x30]
add esp, 0x20
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx