joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40827d
Capabilities:
Delete file
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x10
pop ebx
cmp dword [eax + 0x18], ebx
jb 0x408296
mov eax, dword [eax + 4]
jmp 0x408299
add eax, 4
xor esi, esi
push esi
push closesocket
push esi
push esi
push str.HTTP_1.0
push eax
push 0x449764
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, esi
mov dword [ebp - 4], edi
je 0x408430
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40842a
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push 5
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40831b
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], ebx
jb 0x408302
add eax, 4
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
jmp 0x408308
add eax, 4
mov dword [ebp + 0xc], eax
push 0x4498d0
push eax
call fcn.004282f4
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
jne 0x408327
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x408430
lea eax, [ebp - 0x1c]
push eax
call fcn.0042820b
lea edi, [eax + 1]
push edi
call fcn.00439b52
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
push dword [ebp - 0xc]
push 1
push esi
call fcn.004281bf
push ebx
call fcn.00428a86
push 0
push 0
push ebx
call fcn.00428b6e
push 0xc
pop ecx
xor eax, eax
mov byte [ebp - 0x50], 0
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x50]
push eax
push 0x449860
push ebx
call fcn.004285e3
push dword [ebp + 0x14]
push 0x449920
push ebx
call fcn.004285e3
push ebx
call fcn.00428067
mov ecx, dword [ebp + 0x18]
add esp, 0x3c
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 0x46], 0
call fcn.00401d99
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
mov eax, dword [ebp + 0xc]
jb 0x4083c4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [esi]
mov cl, 0x30
cmp al, cl
jl 0x408430
mov dl, 0x39
cmp al, dl
jg 0x408430
mov al, byte [esi + 1]
cmp al, cl
jl 0x408430
cmp al, dl
jg 0x408430
mov al, byte [esi + 3]
cmp al, cl
jl 0x408430
cmp al, dl
jg 0x408430
mov al, byte [esi + 4]
cmp al, cl
jl 0x408430
cmp al, dl
jg 0x408430
mov al, byte [esi + 6]
cmp al, cl
jl 0x408430
cmp al, dl
jg 0x408430
mov al, byte [esi + 7]
cmp al, cl
jl 0x408430
cmp al, dl
jg 0x408430
mov al, byte [esi + 8]
cmp al, cl
jl 0x408430
cmp al, dl
jg 0x408430
mov al, byte [esi + 9]
cmp al, cl
jl 0x408430
cmp al, dl
jg 0x408430
mov al, 1
jmp 0x408432
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c7d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x408d01
mov ebx, dword [esi + 0x154]
test ebx, ebx
je 0x408d01
push 1
push 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
mov edi, 0x449e7c
push edi
call fcn.00401f47
push dword [esi + 0x1c]
call fcn.00407ff7
add esp, 0x10
mov ecx, ebx
call fcn.00403512
test al, al
push 1
push 1
push ecx
mov dword [ebp + 8], esp
mov ecx, esp
jne 0x408d08
push 0x449e30
call fcn.00401f47
push dword [esi + 0x1c]
call fcn.00407ff7
add esp, 0x10
xor edi, edi
push edi
push edi
push 0x449de8
call fcn.004410a1
push 1
push edi
push edi
push str.http:__http:__www.deo.com.tw
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [esi + 0x70], 1
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
push edi
call fcn.00401f47
push dword [esi + 0x1c]
call fcn.00407ff7
mov eax, dword [ebx + 0x10]
add eax, 0x30
add esp, 0x10
cmp dword [eax + 0x18], 0x10
jb 0x408d2a
mov eax, dword [eax + 4]
jmp 0x408d2d
add eax, 4
push eax
push 0x449db0
mov edi, 0x45f960
push edi
call fcn.004288ce
add esp, 0xc
push edi
mov ecx, esi
call fcn.0043d066
mov al, 1
jmp 0x408d03
Function at 0x408d4d
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x44693e
call fcn.00427ffc
sub esp, 0x58
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 0x2c]
push str.http:__
push eax
call fcn.00402754
add esp, 0xc
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004019c1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408d91
lea eax, [ebp - 0x28]
push ebx
push 0x20000000
push ebx
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
je 0x408e55
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
cmp dword [esi + 0x18], 0x10
jb 0x408dbf
mov esi, dword [esi + 4]
jmp 0x408dc2
add esi, 4
push ebx
push ebx
push 3
mov eax, 0x4497b0
push eax
push eax
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
je 0x408e55
mov esi, dword [ebp + 0x18]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x64]
mov dword [esi], eax
call fcn.00401d56
push str._AutoUpdateGame.vs
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401d7c
mov eax, dword [ebp + 8]
add eax, 0x100
push eax
lea ecx, [ebp - 0x48]
call fcn.00401d56
push str.AutoUpdateGame.vs
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401d7c
push dword [ebp + 0x20]
lea eax, [ebp - 0x48]
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [esi]
call fcn.0040827d
add esp, 0x14
test al, al
jne 0x408e75
push dword [esi]
call edi
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004014e9
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004014e9
mov byte [ebp - 0xd], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014e9
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004014e9
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004014e9
mov byte [ebp - 0xd], 1
jmp 0x408e58
Function at 0x408e91
Capabilities:
Send data
Send http request

Disassembly:
mov eax, 0x446950
call fcn.00427ffc
sub esp, 0x18
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
push 0x10
pop esi
cmp dword [eax + 0x18], esi
jb 0x408eb1
mov eax, dword [eax + 4]
jmp 0x408eb4
add eax, 4
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00401f47
lea eax, [ebp - 0x10]
push eax
call fcn.00407499
pop ecx
pop ecx
xor ebx, ebx
push ebx
push 0x84400100
push ebx
push ebx
push str.HTTP_1.0
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
push 0x449764
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0x18], edi
je 0x408f80
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x408f80
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 5
push edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x408f77
lea eax, [ebp - 0x24]
push eax
call fcn.0042820b
mov edi, eax
mov eax, dword [ebp + 0x1c]
cmp edi, dword [eax + 0x1c]
pop ecx
jne 0x408f80
mov esi, dword [ebp + 0x14]
cmp dword [esi + 0x18], 0x10
jb 0x408f45
mov ecx, dword [esi + 4]
jmp 0x408f48
lea ecx, [esi + 4]
push dword [eax + 0x20]
push dword [eax + 0x30]
push dword [eax + 0x28]
push edi
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040d224
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ebx
push edi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call fcn.00406b8c
add esp, 0x20
mov bl, al
push dword [ebp + 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401162
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40d2a3
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 0x2bc]
mov esi, ecx
push eax
xor ebx, ebx
push 0x202
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40d2ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WSAStartup___failed:__d_n
call fcn.004296af
pop ecx
pop ecx
jmp 0x40d334
push 1
push ebx
push ebx
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40d334
push edi
push 0x4a
mov byte [ebp - 0x12c], bl
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x12c]
push str.Error:_d.
push eax
call fcn.004288ce
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d465
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [esp + 8], ebx
jne 0x40d47e
mov eax, ebx
jmp 0x40d616
mov ecx, dword [esp + 0x1c]
push ebp
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov dword [esi + 0x2c], ecx
lea ecx, [esp + 0x24]
push ecx
push 0x1006
mov ebp, 0xffff
push ebp
push eax
call edi
cmp eax, ebx
je 0x40d4bb
push 4
lea eax, [esp + 0x24]
push eax
push 0x1005
push ebp
push dword [esi]
call edi
cmp eax, ebx
jne 0x40d4c2
mov eax, ebx
jmp 0x40d614
push 0x10
lea ebp, [esi + 4]
push 0
push ebp
call fcn.00428e80
add esp, 0xc
push dword [esp + 0x18]
mov word [ebp], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, ebx
lea edi, [esi + 8]
mov dword [edi], eax
jne 0x40d516
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40d54c
movsx eax, word [ebx + 0xa]
push eax
mov eax, dword [ebx + 0xc]
push dword [eax]
push edi
call fcn.00427370
mov ax, word [ebx + 8]
add esp, 0xc
mov word [ebp], ax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add dword [esi + 0x2c], 0xc
mov edi, 0x400
push edi
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push 8
mov dword [esi + 0x24], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp eax, ebx
jne 0x40d554
or eax, 0xffffffff
jmp 0x40d614
push edi
push ebx
push eax
call fcn.00428e80
add esp, 0xc
push dword [esi + 0x2c]
mov ecx, esi
push dword [esi + 0x24]
call fcn.0040d374
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
jle 0x40d610
mov eax, dword [esi + 0x24]
and word [eax + 2], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x24]
mov dword [ecx + 8], eax
push dword [esi + 0x2c]
mov ebx, dword [esi + 0x24]
push ebx
mov ecx, esi
call fcn.0040d393
push 0x10
mov word [ebx + 2], ax
pop ebx
push ebx
push ebp
push 0
push dword [esi + 0x2c]
push dword [esi + 0x24]
push dword [esi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40d5da
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], ebx
lea ebx, [esi + 0x14]
push ebx
push 0
push edi
push dword [esi + 0x28]
push dword [esi]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x40d5e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x40d610
jmp 0x40d5fe
push ebx
push eax
push dword [esi + 0x28]
mov ecx, esi
call fcn.0040d3e5
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40d614
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jl 0x40d57a
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 0x10
Function at 0x41edeb
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 0x41ee3e
call fcn.00442c12
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x41ee3e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41ee34
xor eax, eax
jmp 0x41ef57
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 0x41ee6e
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 0x41ee6e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x41ef54
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x41ee9b
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041f9e1
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x41ef54
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41eee4
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x41eee4
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41eede
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041f9e1
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x41ef44
and dword [ebp + 0xc], 0
jmp 0x41ef44
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x41ef44
push 0xc
call fcn.00439b22
mov esi, eax
test esi, esi
pop ecx
je 0x41ef26
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 0x41ef28
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x41ef3f
push dword [ebp - 8]
call fcn.00438ba3
jmp 0x41ef44
call fcn.00438b7a
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x41eea9
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4286f3
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 0x428710
call fcn.00429953
mov dword [eax], 0x16
xor eax, eax
jmp 0x42877a
push esi
push 0x8c
push 1
call fcn.0042a42c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x428765
push esi
call fcn.0042b71a
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 0x428743
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x42865e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x428779
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00428ee0
test ebx, ebx
pop ecx
je 0x428777
push ebx
call fcn.00429965
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x429d1f
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.00428310
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x429dba
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 [0x461ef0]
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 0x429dba
cmp eax, 1
je 0x429ddb
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 0x429dba
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x429d87
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x429db6
xor eax, eax
inc eax
jmp 0x429dfa
cmp edi, eax
jae 0x429dbe
xor eax, eax
jmp 0x429dfa
cmp eax, esi
jae 0x429dc5
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 [0x461ef0]
jmp 0x429dde
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 0x42a257
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x44fc68
call fcn.00429e04
mov edi, 0x94
mov eax, edi
call fcn.00428310
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 [0x461ef0], ecx
mov eax, dword [esi + 4]
mov dword [0x461efc], eax
mov edx, dword [esi + 8]
mov dword [0x461f00], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x461ef4], esi
cmp ecx, 2
je 0x42a2b7
or esi, 0x8000
mov dword [0x461ef4], esi
shl eax, 8
add eax, edx
mov dword [0x461ef8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42a2f2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a2f2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42a30a
cmp eax, 0x20b
je 0x42a2f7
mov dword [ebp - 0x1c], esi
jmp 0x42a31e
cmp dword [ecx + 0x84], 0xe
jbe 0x42a2f2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42a318
cmp dword [ecx + 0x74], 0xe
jbe 0x42a2f2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042fbb4
pop ecx
test eax, eax
jne 0x42a332
push 0x1c
call fcn.0042a233
pop ecx
call fcn.0042b914
test eax, eax
jne 0x42a343
push 0x10
call fcn.0042a233
pop ecx
call fcn.00431ac2
mov dword [ebp - 4], esi
call fcn.00430e58
test eax, eax
jge 0x42a35c
push 0x1b
call fcn.0042a20e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4638f0], eax
call fcn.004319a0
mov dword [0x461ee0], eax
call fcn.004318fe
test eax, eax
jge 0x42a382
push 8
call fcn.0042a20e
pop ecx
call fcn.004316cb
test eax, eax
jge 0x42a393
push 9
call fcn.0042a20e
pop ecx
push 1
call fcn.0042a7c9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42a3a9
push eax
call fcn.0042a20e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043166e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42a3ca
movzx eax, word [ebp - 0x40]
jmp 0x42a3cd
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043817b
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42a3eb
push edi
call fcn.0042a8f6
call fcn.0042a918
jmp 0x42a41d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00429e3f
ret
Function at 0x42a833
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44fcc0
call fcn.00429e04
push 8
call fcn.0042e67f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x461f30], esi
jne 0x42a867
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x461f2c], esi
mov al, byte [ebp + 0x10]
mov byte [0x461f28], al
cmp dword [ebp + 0xc], edi
jne 0x42a8b1
cmp dword [0x4638e8], edi
je 0x42a8a1
mov eax, dword [0x4638e4]
sub eax, 4
mov dword [0x4638e4], eax
cmp eax, dword [0x4638e8]
jb 0x42a8a1
mov eax, dword [eax]
cmp eax, edi
je 0x42a882
call eax
jmp 0x42a882
push 0x45c0b0
mov eax, 0x45c0a8
call fcn.0042a7b1
pop ecx
push 0x45c0bc
mov eax, 0x45c0b4
call fcn.0042a7b1
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42a8e2
cmp dword [ebp + 0x10], edi
jne 0x42a8f0
mov dword [0x461f30], esi
push dword [ebp + 8]
call fcn.0042a76f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42a8ef
push 8
call fcn.0042e5ca
pop ecx
ret
call fcn.00429e3f
ret
Function at 0x42cfc7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x45eab8]
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 0x42cff8
xor eax, eax
jmp 0x42d181
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 + 0x462560]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x42d034
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00432dfe
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42d10f
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x42d14d
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 0x42d098
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42d089
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 0x42d069
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 0x42d0d8
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x42d0e1
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x42d05a
jmp 0x42d0e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x42d17c
cmp dword [ebp - 0x6c], edi
je 0x42d14d
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x42d142
call fcn.00429953
mov dword [eax], 9
call fcn.0042995c
mov dword [eax], esi
jmp 0x42d177
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 0x42d137
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x42d0e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x42d0e3
push dword [ebp - 0x6c]
call fcn.00429965
pop ecx
jmp 0x42d177
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42d165
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x42d165
xor eax, eax
jmp 0x42d17f
call fcn.00429953
mov dword [eax], 0x1c
call fcn.0042995c
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x42d17f
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0042a518
add ebp, 0x3a0
leave
ret