joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43099d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x360
mov eax, dword [0x441840]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x36c], ecx
push 0x104
push 0
lea eax, [ebp - 0x364]
push eax
call fcn.00416550
add esp, 0xc
lea ecx, [ebp - 0x364]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4019df
xor al, al
jmp 0x401a8b
push str.update_europe.ini
lea edx, [ebp - 0x364]
push edx
call fcn.004165c0
add esp, 8
lea eax, [ebp - 0x364]
push eax
mov ecx, dword [ebp - 0x36c]
add ecx, 0x268
push ecx
call fcn.004165b0
add esp, 8
lea ecx, [ebp - 0x25c]
call fcn.00403370
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], str.http:__liveupdate.vdigm.com:80_download_easystudio_imageeditor_update_europe.ini
push 0
push 0
push 0
push 1
lea edx, [ebp - 0x364]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00403c40
cmp eax, 1
je 0x401a6c
mov byte [ebp - 0x365], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00403490
mov al, byte [ebp - 0x365]
jmp 0x401a8b
mov byte [ebp - 0x366], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00403490
mov al, byte [ebp - 0x366]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0041606e
mov esp, ebp
pop ebp
ret

Function at 0x401af0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x441840]
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
push 0x104
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00416550
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.00416550
add esp, 0xc
push str.SamsungEasyStudioImageEditor
mov ecx, dword [ebp - 0x21c]
add ecx, 0x260
call fcn.0040afa0
push 0x104
mov edx, dword [ebp - 0x21c]
add edx, 0x36c
push edx
push str.FOLDER
mov ecx, dword [ebp - 0x21c]
add ecx, 0x260
call fcn.0040b0f0
movzx eax, al
test eax, eax
je 0x401bad
push 0x4327fc
mov ecx, dword [ebp - 0x21c]
add ecx, 0x36c
push ecx
call fcn.004165c0
add esp, 8
mov edx, dword [ebp - 0x21c]
add edx, 0x36c
push edx
mov ecx, dword [ebp - 0x21c]
add ecx, 0x10
call fcn.004096d0
push 0x104
mov eax, dword [ebp - 0x21c]
add eax, 0x470
push eax
push str.ImageEditor_Country_Name
mov ecx, dword [ebp - 0x21c]
add ecx, 0x260
call fcn.0040b0f0
movzx ecx, al
test ecx, ecx
je 0x401bf6
mov edx, dword [ebp - 0x21c]
add edx, 0x470
push edx
mov ecx, dword [ebp - 0x21c]
add ecx, 0x10
call fcn.00409720
push 0x43281c
lea eax, [ebp - 0x218]
push eax
call fcn.004165b0
add esp, 8
push 0x104
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x21c]
add ecx, 0x260
call fcn.0040b0f0
movzx eax, al
test eax, eax
je 0x401c51
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x21c]
add ecx, 0x10
call fcn.00409b90
push 0x104
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00416550
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.00416550
add esp, 0xc
mov ecx, dword [ebp - 4]
call fcn.0041606e
mov esp, ebp
pop ebp
ret
Function at 0x405640
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x194], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x194], 0xffffffff
jne 0x40566c
xor al, al
jmp 0x40568d
push 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x194]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40568b
xor al, al
jmp 0x40568d
mov al, 1
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jge 0x40576c
push 0
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x194]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x405738
mov eax, 0xfffffffc
jmp 0x405771
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x224]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x224], ecx
mov ecx, dword [ebp - 0xc]
call fcn.00406300
movzx eax, al
test eax, eax
jne 0x40576a
or eax, 0xffffffff
jmp 0x405771
jmp 0x405700
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4058b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004176a0
mov eax, dword [0x441840]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1014], ecx
mov byte [ebp - 5], 1
mov eax, 1
test eax, eax
je 0x405aec
push 0
push 0x1000
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [ebp - 0x1014]
mov eax, dword [edx + 0x194]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x405910
mov eax, 0xfffffffb
jmp 0x405b09
cmp dword [ebp - 0xc], 0
jne 0x40591b
jmp 0x405aec
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x1010]
push edx
mov ecx, dword [ebp - 0x1014]
add ecx, 0x1f8
call fcn.004074e0
movzx eax, byte [ebp - 5]
test eax, eax
je 0x405ab5
push 0x432d84
mov ecx, dword [ebp - 0x1014]
add ecx, 0x1f8
call fcn.004075a0
push eax
call fcn.00417610
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405976
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
jmp 0x4059a7
push 0x432d8c
mov ecx, dword [ebp - 0x1014]
add ecx, 0x1f8
call fcn.004075a0
push eax
call fcn.00417610
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4059a7
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x405ab3
mov ecx, dword [ebp - 0x1014]
add ecx, 0x1f8
call fcn.004075a0
mov ecx, dword [ebp - 4]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x1014]
add ecx, 0x1f8
call fcn.004075a0
push eax
mov ecx, dword [ebp - 0x1014]
add ecx, 0x208
call fcn.0040b490
mov ecx, dword [ebp - 0x1014]
add ecx, 0x1f8
call fcn.004075a0
mov edx, dword [ebp - 4]
sub edx, eax
push edx
mov ecx, dword [ebp - 0x1014]
add ecx, 0x1f8
call fcn.00407550
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push 1
push 0x20
mov ecx, dword [ebp - 0x1014]
add ecx, 0x208
call fcn.004075a0
push eax
call fcn.0040bce0
add esp, 0x14
lea ecx, [ebp - 0x1010]
push ecx
call fcn.004175ab
add esp, 4
mov edx, dword [ebp - 0x1014]
mov dword [edx + 0x214], eax
mov ecx, dword [ebp - 0x1014]
call fcn.00403d70
mov ecx, dword [ebp - 0x1014]
mov dword [ecx + 0x220], eax
mov ecx, dword [ebp - 0x1014]
add ecx, 0x1f8
call fcn.004075c0
mov edx, dword [ebp - 0x1014]
add eax, dword [edx + 0x224]
mov ecx, dword [ebp - 0x1014]
mov dword [ecx + 0x224], eax
mov ecx, dword [ebp - 0x1014]
call fcn.00406300
movzx edx, al
test edx, edx
jne 0x405aaf
or eax, 0xffffffff
jmp 0x405b09
mov byte [ebp - 5], 0
jmp 0x405ae7
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax + 0x224]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1014]
mov dword [edx + 0x224], ecx
mov ecx, dword [ebp - 0x1014]
call fcn.00406300
movzx eax, al
test eax, eax
jne 0x405ae7
or eax, 0xffffffff
jmp 0x405b09
jmp 0x4058cf
push 1
push 0x432d90
mov ecx, dword [ebp - 0x1014]
add ecx, 0x1f8
call fcn.004074e0
mov eax, 1
mov ecx, dword [ebp - 0x10]
call fcn.0041606e
mov esp, ebp
pop ebp
ret
Function at 0x408f80
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov dword [ebp - 0x408], ecx
mov eax, dword [ebp - 0x408]
mov dword [eax], 0x433390
mov ecx, dword [ebp - 0x408]
add ecx, 4
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x408fd5
push str.CNetBase::CNetBase___WSAStartup
lea ecx, [ebp - 0x404]
call fcn.00402ca0
push 0x43a440
lea edx, [ebp - 0x404]
push edx
call fcn.00417c2a
mov eax, dword [ebp - 0x408]
mov esp, ebp
pop ebp
ret

Function at 0x4091f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0x10
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00416550
add esp, 0xc
mov ecx, dword [ebp - 8]
mov word [ecx], 2
mov edx, dword [ebp + 8]
push edx
call fcn.00409550
add esp, 4
movzx eax, al
test eax, eax
je 0x409236
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x409259
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409259
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004175ab
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 8]
mov word [ecx + 2], ax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x40cca9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40ccfc
call fcn.0042def8
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40ccfc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40ccf2
xor eax, eax
jmp 0x40ce15
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40cd2c
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40cd2c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40ce12
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40cd59
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040e43f
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40ce12
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40cda2
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40cda2
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40cd9c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040e43f
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40ce02
and dword [ebp + 0xc], 0
jmp 0x40ce02
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40ce02
push 0xc
call fcn.00423c56
mov esi, eax
test esi, esi
pop ecx
je 0x40cde4
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40cde6
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40cdfd
push dword [ebp - 8]
call fcn.00423729
jmp 0x40ce02
call fcn.00423700
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40cd67
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41676e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41678b
call fcn.004198b8
mov dword [eax], 0x16
xor eax, eax
jmp 0x4167f5
push esi
push 0x8c
push 1
call fcn.0041993d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4167e0
push esi
call fcn.0041a476
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4167be
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4166d9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4167f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004177fa
test ebx, ebx
pop ecx
je 0x4167f2
push ebx
call fcn.004198ca
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x417d94
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004176a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417e2f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x44478c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x417e2f
cmp eax, 1
je 0x417e50
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417e2f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x417dfc
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x417e2b
xor eax, eax
inc eax
jmp 0x417e6f
cmp edi, eax
jae 0x417e33
xor eax, eax
jmp 0x417e6f
cmp eax, esi
jae 0x417e3a
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44478c]
jmp 0x417e53
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418233
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x436758
call fcn.00418898
mov edi, 0x94
mov eax, edi
call fcn.004176a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x44478c], ecx
mov eax, dword [esi + 4]
mov dword [0x444798], eax
mov edx, dword [esi + 8]
mov dword [0x44479c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x444790], esi
cmp ecx, 2
je 0x418293
or esi, 0x8000
mov dword [0x444790], esi
shl eax, 8
add eax, edx
mov dword [0x444794], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4182ce
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4182ce
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4182e6
cmp eax, 0x20b
je 0x4182d3
mov dword [ebp - 0x1c], esi
jmp 0x4182fa
cmp dword [ecx + 0x84], 0xe
jbe 0x4182ce
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4182f4
cmp dword [ecx + 0x74], 0xe
jbe 0x4182ce
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041c997
pop ecx
test eax, eax
jne 0x41830e
push 0x1c
call fcn.0041820f
pop ecx
call fcn.0041a670
test eax, eax
jne 0x41831f
push 0x10
call fcn.0041820f
pop ecx
call fcn.0041e215
mov dword [ebp - 4], esi
call fcn.0041c50e
test eax, eax
jge 0x418338
push 0x1b
call fcn.004181ea
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x446070], eax
call fcn.0041e0f3
mov dword [0x44477c], eax
call fcn.0041e051
test eax, eax
jge 0x41835e
push 8
call fcn.004181ea
pop ecx
call fcn.0041de1e
test eax, eax
jge 0x41836f
push 9
call fcn.004181ea
pop ecx
push 1
call fcn.0041859d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x418385
push eax
call fcn.004181ea
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041ddc1
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4183a6
movzx eax, word [ebp - 0x40]
jmp 0x4183a9
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00423216
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4183c7
push edi
call fcn.004186ca
call fcn.004186ec
jmp 0x4183f9
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004188d3
ret
Function at 0x418607
Capabilities:
Terminate process

Disassembly:
push 8
push 0x436780
call fcn.00418898
push 8
call fcn.0041c044
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4447cc], esi
jne 0x41863b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4447c8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4447c4], al
cmp dword [ebp + 0xc], edi
jne 0x418685
cmp dword [0x446068], edi
je 0x418675
mov eax, dword [0x446064]
sub eax, 4
mov dword [0x446064], eax
cmp eax, dword [0x446068]
jb 0x418675
mov eax, dword [eax]
cmp eax, edi
je 0x418656
call eax
jmp 0x418656
push 0x43e094
mov eax, 0x43e08c
call fcn.00418585
pop ecx
push 0x43e0a0
mov eax, 0x43e098
call fcn.00418585
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4186b6
cmp dword [ebp + 0x10], edi
jne 0x4186c4
mov dword [0x4447cc], esi
push dword [ebp + 8]
call fcn.00418543
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4186c3
push 8
call fcn.0041bf8f
pop ecx
ret
call fcn.004188d3
ret
Function at 0x41b936
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41bb0a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x444d00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41bb0a
test cl, 0x48
je 0x41b9a1
cmp byte [eax + 5], 0xa
je 0x41b9a1
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b9f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41b9db
call fcn.004198b8
mov dword [eax], 9
call fcn.004198c1
mov dword [eax], esi
jmp 0x41b9eb
cmp eax, 0x6d
je 0x41bb0a
push eax
call fcn.004198ca
pop ecx
or eax, 0xffffffff
jmp 0x41bb0c
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41bb05
test eax, eax
je 0x41ba1a
cmp byte [ebx], 0xa
jne 0x41ba1a
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41ba23
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41baff
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41baef
cmp al, 0xd
je 0x41ba55
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41bae1
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41ba6f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41ba6a
add dword [ebp + 0x10], 2
jmp 0x41bac3
mov dword [ebp + 0x10], eax
jmp 0x41badd
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ba97
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41badd
cmp dword [ebp - 0xc], 0
je 0x41badd
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41bab8
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41bac3
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41bae0
cmp ebx, dword [ebp + 0xc]
jne 0x41bac8
cmp byte [ebp - 1], 0xa
jne 0x41bac8
mov byte [ebx], 0xa
jmp 0x41bae0
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c3ef
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41bae1
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41ba39
jmp 0x41baff
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41baff
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41bb0c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bbbc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x441840]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41bbed
xor eax, eax
jmp 0x41bd76
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x444d00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41bc29
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00420858
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41bd04
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41bd42
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41bc8d
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41bc7e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41bc5e
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41bccd
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41bcd6
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41bc4f
jmp 0x41bcd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41bd71
cmp dword [ebp - 0x6c], edi
je 0x41bd42
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41bd37
call fcn.004198b8
mov dword [eax], 9
call fcn.004198c1
mov dword [eax], esi
jmp 0x41bd6c
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41bd2c
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41bcd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41bcd8
push dword [ebp - 0x6c]
call fcn.004198ca
pop ecx
jmp 0x41bd6c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41bd5a
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41bd5a
xor eax, eax
jmp 0x41bd74
call fcn.004198b8
mov dword [eax], 0x1c
call fcn.004198c1
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41bd74
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041606e
add ebp, 0x3a0
leave
ret