joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039b4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, dword [ebp + 8]
push 0
push ebx
call sub.user32.dll_ShowWindow
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.user32.dll_GetWindowRect
push 2
push 2
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_InflateRect
push ebx
call sub.user32.dll_GetParent
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.user32.dll_ScreenToClient
lea eax, [ebp - 8]
push eax
push ebx
call sub.user32.dll_ScreenToClient
push 5
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.user32.dll_RedrawWindow
pop ebx
leave
ret 4

Function at 0x403a0c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, dword [ebp + 8]
push 5
push ebx
call sub.user32.dll_ShowWindow
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.user32.dll_GetWindowRect
push 2
push 2
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_InflateRect
push ebx
call sub.user32.dll_GetParent
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.user32.dll_ScreenToClient
lea eax, [ebp - 8]
push eax
push ebx
call sub.user32.dll_ScreenToClient
push 0x105
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.user32.dll_RedrawWindow
pop ebx
leave
ret 4
Function at 0x4041d6
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xcc0020
push 0
push 0
push dword [0x409ac0]
push 0x44
push 0x50
push 0
push ebx
push edi
call sub.gdi32.dll_BitBlt
push 0xcc0020
push 0
push 0
push dword [0x409ac0]
push 0x18
push 0x50
push 0x44
push ebx
push edi
call sub.gdi32.dll_BitBlt
add ebx, 0x50
cmp ebx, 0x252
jb 0x4041e1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4054dd
Capabilities:
Hide graphical window

Disassembly:
push dword [0x40efdc]
call fcn.00403a0c
push dword [0x40efe0]
call fcn.004039b4
push 1
push dword [0x40efd8]
call sub.user32.dll_EnableWindow
push 5
push dword [0x40efd8]
call sub.user32.dll_ShowWindow
push 0x4099cf
push dword [0x40efd8]
call sub.user32.dll_SetWindowTextA
push 0x101
push 0
push 0
push dword [0x409ac8]
call sub.user32.dll_RedrawWindow
ret

Function at 0x4055b5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [ebp + 8]
mov dword [0x409a88], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x189
mov dword [ebp - 4], 0x132
push 0x40001
push 0
push 0x80000100
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_AdjustWindowRectEx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
push 0
push dword [0x409ab8]
push 0
push 0
push ecx
push eax
push 0
push 0
push 0x80000100
push 0x4099a9
push 0x4092a6
push 0x40001
call sub.user32.dll_CreateWindowExA
mov dword [0x409ac8], eax
or eax, eax
je 0x405766
push eax
call fcn.00405532
push dword [0x40928e]
push 0x40919e
call fcn.00403f64
push 0x405bec
push 0xfffffffffffffffc
push dword [0x40efc8]
call sub.user32.dll_SetWindowLongA
mov dword [0x40efe8], eax
push 0xffffff
push 0
push 0x443
push dword [0x40efc8]
call sub.user32.dll_SendMessageA
push 3
push 0
push 0
push 0
push 0
push dword [0x409a94]
push dword [0x409ac8]
call sub.user32.dll_SetWindowPos
call fcn.0040388f
push 0x47
push 0
push 0
push 0
push 0
push dword [0x409a94]
push dword [0x409ac8]
call sub.user32.dll_SetWindowPos
push 0
push dword [0x409a94]
call sub.user32.dll_ShowWindow
push 0
push 0xffffffffffffffeb
push dword [0x409ac8]
call sub.user32.dll_SetWindowLongA
push 0
push 0x20002
push 0x128
push dword [0x409ac8]
call sub.user32.dll_SendMessageA
cmp dword [0x409adc], 0
je 0x405702
push 1
push 7
push dword [0x409ac8]
call sub.user32.dll_CheckDlgButton
mov eax, dword [0x409a88]
or eax, eax
jne 0x40572a
push 0x409779
push dword [0x40efe0]
call sub.user32.dll_SetWindowTextA
push 0
push dword [0x40efe0]
call sub.user32.dll_ShowWindow
jmp 0x405763
cmp eax, 1
jne 0x405763
push 0x4097a2
call fcn.0040537a
push 0
push dword [0x40efdc]
call sub.user32.dll_ShowWindow
push 5
push dword [0x40efe0]
call sub.user32.dll_ShowWindow
push 0x40978e
push dword [0x40efe0]
call sub.user32.dll_SetWindowTextA
xor eax, eax
dec eax
leave
ret 4
Function at 0x40576a
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xcc0020
push 0
push 0
push dword [0x409ac0]
push 0x3c
push 0x50
push 0
push ebx
push edi
call sub.gdi32.dll_BitBlt
add ebx, 0x50
cmp ebx, 0x189
jb 0x405779
push 7
push 0x14f
push edi
call fcn.00404051
push dword [0x409b38]
push edi
call sub.gdi32.dll_SelectObject
push 0
push 0x3c
push 0
push edi
call sub.gdi32.dll_MoveToEx
push 0x3c
push 0x252
push edi
call sub.gdi32.dll_LineTo
push 1
push edi
call sub.gdi32.dll_SetBkMode
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov esi, eax
push dword [0x409ad4]
push esi
call sub.gdi32.dll_SelectObject
push eax
push 0xcc0020
push 0
push 0
push esi
push 0x2d
push 0x2d
push 8
push 0xa
push edi
call sub.gdi32.dll_BitBlt
pop eax
push eax
push esi
call sub.gdi32.dll_SelectObject
push esi
call sub.gdi32.dll_DeleteDC
push 0x808080
push edi
call sub.gdi32.dll_SetTextColor
push dword [0x409b80]
push edi
call sub.gdi32.dll_SelectObject
push 0xe
push 0x40938c
push dword [ebp + 0xc]
push edi
call fcn.004049e0
pop edi
pop esi
pop ebx
pop eax
leave
ret 8
Function at 0x401e40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401e8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e84
test esi, esi
je 0x401e84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e60
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402070
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4020c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402198
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4020fe
cmp eax, 4
jne 0x402120
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40210e
cmp edx, 4
je 0x40210e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402070

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
Function at 0x5612f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xea000]
push edi
or ebp, 0xffffffff
jmp 0x561312
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x561319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x561308
mov eax, 1
add ebx, ebx
jne 0x56132b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x56133c
jne 0x56135b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56135b
dec eax
add ebx, ebx
jne 0x561348
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x561320
add ebx, ebx
jne 0x561357
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5613ad
xor ecx, ecx
sub eax, 3
jb 0x561373
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5613e2
sar eax, 1
mov ebp, eax
jmp 0x56137e
add ebx, ebx
jne 0x56137e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56134c
inc ecx
add ebx, ebx
jne 0x56138c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56134c
add ebx, ebx
jne 0x561399
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x56138e
jne 0x5613aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x56138e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5613cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5613be
jmp 0x56130e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5613cc
add edi, ecx
jmp 0x56130e
pop esi
mov edi, esi
mov ecx, 0x6f3d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5613ea
cmp byte [edi], 0x11
jne 0x5613ea
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 0x5613ef
lea edi, [esi + 0x15e000]
mov eax, dword [edi]
or eax, eax
je 0x561467
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x161068]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x161180]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x56141c
mov ecx, edi
jns 0x56144b
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 + 0x161184]
or eax, eax
je 0x561461
mov dword [ebx], eax
add ebx, 4
jmp 0x561439
call dword [esi + 0x16118c]
mov ebp, dword [esi + 0x161188]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x56149b
sub esp, 0xffffff80
jmp 0x4011c8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401395
Capabilities:
Hash data with crc32

Disassembly:
push esi
push 8
xor eax, eax
shl ecx, 1
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
shr eax, 1
test dl, 1
je 0x4013af
xor eax, 0xedb88320
dec esi
jne 0x40139d
pop esi
ret

Function at 0x4013d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
mov eax, dword [0x40f970]
je 0x4013fb
mov ecx, dword [esp + 4]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x40f358]
inc ecx
dec edx
jne 0x4013e3
pop edi
pop esi
mov dword [0x40f970], eax
ret

Function at 0x403242
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x7000
push esi
push 0
push dword [0x40f2c0]
call fcn.00401195
mov eax, dword [0x40f34a]
add esp, 0xc
test eax, eax
jg 0x40326d
and dword [0x40fc54], 0
xor eax, eax
pop esi
ret
cmp eax, esi
ja 0x403273
mov esi, eax
push edi
mov edi, dword [0x40c108]
push esi
push dword [0x40f2c0]
push dword [0x40fc64]
call edi
cmp dword [0x40fc88], 0
mov dword [0x40fc54], eax
je 0x4032da
cmp eax, 0xffffffff
je 0x4032da
cmp eax, esi
je 0x4032e6
test eax, eax
jl 0x4032da
mov ecx, dword [0x40e910]
mov edx, dword [0x40fc8c]
inc ecx
call fcn.00401f25
mov eax, dword [0x40fc54]
test eax, eax
jne 0x4032d3
push esi
push dword [0x40f2c0]
push dword [0x40fc64]
call edi
mov dword [0x40fc54], eax
cmp eax, 0xffffffff
je 0x4032da
mov esi, eax
cmp eax, esi
je 0x4032e6
push 2
pop ecx
jmp fcn.00402a63
mov esi, dword [0x40f2c0]
mov ecx, dword [0x40e960]
mov dword [0x40fc50], esi
test byte [ecx + 0x28], 1
je 0x403332
mov byte [0x40fcd0], 1
test byte [ecx + 0x29], 0x13
jne 0x40333f
test eax, eax
je 0x40332b
mov edi, eax
call fcn.004061c9
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.004061e0
inc esi
dec edi
pop ecx
jne 0x403311
mov eax, dword [0x40fc54]
mov byte [0x40fcd0], 0
mov ecx, eax
dec eax
pop edi
mov dword [0x40fc54], eax
mov eax, ecx
pop esi
ret
push 0xf2e
push dword [0x40e920]
call fcn.00401be1
int3

Function at 0x4061e0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x410b08]
mov edx, eax
xor edx, dword [esp + 4]
shr eax, 8
mov ecx, 0xff
and edx, ecx
xor eax, dword [edx*4 + 0x40f358]
xor edx, edx
mov dword [0x410b08], eax
and eax, ecx
add eax, dword [0x410b0c]
imul eax, eax, 0x8088405
inc eax
mov dword [0x410b0c], eax
mov dl, byte [0x410b0f]
mov eax, dword [0x410b10]
xor edx, eax
shr eax, 8
and edx, ecx
xor eax, dword [edx*4 + 0x40f358]
mov dword [0x410b10], eax
mov eax, dword [esp + 4]
ret
Function at 0x406272
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40ebd0]
push esi
push dword [0x40fc84]
mov dword [ebp - 4], eax
call fcn.0040623a
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00401148
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0x10]
call fcn.004061c9
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.004061e0
inc esi
cmp esi, 0xc
pop ecx
jl 0x40629f
cmp dword [0x40fc80], 0
movzx ax, byte [ebp - 5]
movzx cx, byte [0x40f343]
pop esi
jne 0x4062d9
movzx cx, byte [0x40f349]
cmp ax, cx
je 0x4062e3
or eax, 0xffffffff
jmp 0x4062e5
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.00406396
leave
ret

Function at 0x406bd0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40c610
call fcn.00406f5c
mov edi, 0x94
mov eax, edi
call fcn.00406af0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x40c178]
mov ecx, dword [esi + 0x10]
mov dword [0x410b24], ecx
mov eax, dword [esi + 4]
mov dword [0x410b30], eax
mov edx, dword [esi + 8]
mov dword [0x410b34], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x410b28], esi
cmp ecx, 2
je 0x406c30
or esi, 0x8000
mov dword [0x410b28], esi
shl eax, 8
add eax, edx
mov dword [0x410b2c], eax
xor esi, esi
push esi
mov edi, dword [0x40c164]
call edi
cmp word [eax], 0x5a4d
jne 0x406c6b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406c6b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406c83
cmp eax, 0x20b
je 0x406c70
mov dword [ebp - 0x1c], esi
jmp 0x406c97
cmp dword [ecx + 0x84], 0xe
jbe 0x406c6b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x406c91
cmp dword [ecx + 0x74], 0xe
jbe 0x406c6b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00407c62
pop ecx
test eax, eax
jne 0x406cc3
cmp dword [0x410b70], 1
jne 0x406cb0
call fcn.0040749f
push 0x1c
call fcn.00407328
push 0xff
call fcn.0040641d
pop ecx
pop ecx
call fcn.004072a0
mov dword [ebp - 4], esi
call fcn.00407a9d
test eax, eax
jge 0x406cdc
push 0x1b
call fcn.00406bab
pop ecx
call dword [0x40c174]
mov dword [0x4120c0], eax
call fcn.0040797b
mov dword [0x410b68], eax
call fcn.004078d9
test eax, eax
jge 0x406d02
push 8
call fcn.00406bab
pop ecx
call fcn.004076a6
test eax, eax
jge 0x406d13
push 9
call fcn.00406bab
pop ecx
push 1
call fcn.0040644d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x406d29
push eax
call fcn.00406bab
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x40c170]
call fcn.00407649
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x406d4a
movzx eax, word [ebp - 0x40]
jmp 0x406d4d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00404c28
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x406d6b
push edi
call fcn.00406578
call fcn.0040659a
jmp 0x406d9d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406f97
ret
Function at 0x407fd4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x408002
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x408009
cmp ebx, dword [eax + 4]
jae 0x408009
xor eax, eax
jmp 0x4081f9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40801a
xor eax, eax
inc eax
jmp 0x4081f8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x408030
cmp ecx, edx
jae 0x408175
cmp dword [eax + 4], 0
je 0x408039
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408021
cmp dword [ebp + 8], 0
je 0x40805b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408175
cmp eax, esi
jae 0x408175
mov eax, dword [0x410cc8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x408080
cmp dword [esi*4 + 0x410cd0], edi
je 0x408179
inc esi
cmp esi, eax
jl 0x40806e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x40c080]
test eax, eax
je 0x4081f5
cmp dword [ebp - 8], 0x1000000
jne 0x4081f5
test byte [ebp - 0xc], 0xcc
je 0x4080fe
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4081f5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4081f5
cmp word [eax + 0x18], 0x10b
jne 0x4081f5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4081f5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4080fe
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4080fe
test byte [ecx + 0x27], 0x80
jne 0x408175
push 1
push 0x410d10
call dword [0x40c084]
test eax, eax
jne 0x408012
mov ecx, dword [0x410cc8]
test ecx, ecx
mov edx, ecx
jle 0x408132
lea eax, [ecx*4 + 0x410ccc]
cmp dword [eax], edi
je 0x408132
dec edx
sub eax, 4
test edx, edx
jg 0x408126
test edx, edx
jne 0x408163
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40813f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408157
lea eax, [edx*4 + 0x410cd0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408145
cmp ecx, 0x10
jge 0x408163
inc ecx
mov dword [0x410cc8], ecx
push 0
push 0x410d10
call dword [0x40c084]
jmp 0x408012
xor eax, eax
jmp 0x4081f8
test esi, esi
jle 0x408012
mov ebx, dword [0x40c084]
push 1
push 0x410d10
call ebx
test eax, eax
jne 0x408012
cmp dword [esi*4 + 0x410cd0], edi
je 0x4081cf
mov eax, dword [0x410cc8]
lea esi, [eax - 1]
test esi, esi
jl 0x4081bd
cmp dword [esi*4 + 0x410cd0], edi
je 0x4081b9
dec esi
jns 0x4081ad
test esi, esi
jge 0x4081cd
cmp eax, 0x10
jge 0x4081c8
inc eax
mov dword [0x410cc8], eax
lea esi, [eax - 1]
jmp 0x4081cf
je 0x4081e7
xor ecx, ecx
test esi, esi
jl 0x4081e7
lea eax, [ecx*4 + 0x410cd0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4081d5
push 0
push 0x410d10
call ebx
jmp 0x408012
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4409bc
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x598
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x440a35
and dword [ebp - 0x194], 0
push 0x400
lea eax, [ebp - 0x594]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x440a27
lea eax, [ebp - 0x594]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x598], eax
cmp dword [ebp - 0x598], 0
je 0x440a27
mov eax, dword [ebp - 0x598]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x194], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
jmp 0x440a37
xor eax, eax
leave
ret

Function at 0x440a39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x1400
push 0x43e230
call fcn.004400eb
pop ecx
pop ecx
push 0x43f970
push 0x40e6bf
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x440a8c
push dword [ebp - 4]
push 1
push 0x1400
push 0x43e230
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 0x43f974
push 0x40e7be
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x440ac9
push dword [ebp - 8]
push 1
push 0x1400
push 0x43e230
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [0x41cc98]
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
jne 0x440af3
push 0x40e7be
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
jne 0x440af3
push 0x40e6bf
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xor eax, eax
leave
ret

Function at 0x440c73
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
leave
ret
Function at 0x440ebb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push 0
push 0
push 0
push 0
push 0x43f998
call dword [0x40ddc0]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
je 0x440f99
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x82c]
call dword [0x401100]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0
je 0x440f99
push 0x43f99c
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
je 0x440f99
lea eax, [ebp - 0x824]
push eax
push 0x800
lea eax, [ebp - 0x800]
push eax
push dword [ebp - 0x830]
call dword [0x401108]
test eax, eax
jne 0x440f58
jmp 0x440f87
push dword [ebp - 0x834]
push 1
push dword [ebp - 0x824]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 0x824], 0
ja 0x440f33
push dword [ebp - 0x834]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
jmp 0x440f9b
xor eax, eax
leave
ret