joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407950
Capabilities:
Initialize winhttp library

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, eax
mov ebx, ecx
call fcn.00409000
mov ebp, eax
xor eax, eax
push str._Proxy__Opening_HTTP_Session_n
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.00401480
add esp, 4
push 0
push 0
push 0
push 1
push str.JWrapper_Proxy_Detector_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
je 0x407aa0
test ebx, ebx
mov dword [esp + 0x20], 1
je 0x4079e7
push ebx
push str._Proxy__Using_auto_config_URL:__S_n
mov dword [esp + 0x28], 3
call fcn.00401480
add esp, 8
mov dword [esp + 0x28], ebx
push ebp
push str._Proxy__Attempting_to_detect_proxy_for_URL__S_n
mov dword [esp + 0x2c], 3
mov dword [esp + 0x3c], 1
call fcn.00401480
add esp, 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x407a70
push str._Proxy__Configuration_found_n
call fcn.00401480
add esp, 4
cmp dword [esp + 0x14], 1
jne 0x407a36
push str._Proxy__Direct_connection_used_n
jmp 0x407a75
mov edx, dword [esp + 0x18]
push edx
push str._Proxy___S_n
call fcn.00401480
mov eax, dword [esp + 0x24]
push eax
push str._Proxy___S_n
call fcn.00401480
mov ebx, dword [esp + 0x28]
add esp, 0x10
call fcn.00409060
mov ebx, dword [esp + 0x1c]
mov dword [esi], eax
call fcn.00409060
mov dword [esi + 4], eax
jmp 0x407a7d
push str._Proxy__Configuration_NOT_found_n
call fcn.00401480
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x407a8e
push eax
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407a99
push eax
call esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebp
call fcn.004092a3
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x407c70
Capabilities:
Create process on windows

Disassembly:
mov eax, 0xc3b8
call fcn.004170f0
mov eax, dword [0x4234e0]
xor eax, esp
mov dword [esp + 0xc3b0], eax
push ebp
push esi
push edi
push str._Spawner__Constructing_command_line..._n
call fcn.00401480
call fcn.00409ba9
add eax, 0x20
push eax
call fcn.00409f3d
mov eax, dword [ebx]
add esp, 8
xor ebp, ebp
test eax, eax
mov byte [esp + 0x68], 0
je 0x407d3a
jmp 0x407cc0
lea edi, [esp + 0x68]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407cc7
mov cx, word [0x41e16c]
mov word [edi], cx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407ce0
lea edi, [esp + 0x68]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407cf4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x68]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407d13
mov dx, word [0x420840]
mov cl, byte [0x420842]
mov word [eax], dx
add ebp, 1
mov byte [eax + 2], cl
mov eax, dword [ebx + ebp*4]
test eax, eax
jne 0x407cc0
lea edx, [esp + 0x68]
push edx
push str._Spawner__Creating_command_line__s_n
call fcn.00401480
call fcn.00409ba9
add eax, 0x20
push eax
call fcn.00409f3d
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call fcn.004109c0
add esp, 0x18
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407ddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d_._n
call fcn.00401480
call fcn.00409ba9
add eax, 0x20
push eax
call fcn.00409f3d
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xc3b0]
xor ecx, esp
call fcn.00409294
add esp, 0xc3b8
ret
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
push str._Spawner__runSpawnerAndWait_returned__d_n
call fcn.00401480
mov ecx, dword [esp + 0xc3c4]
mov eax, dword [esp + 0x14]
add esp, 8
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00409294
add esp, 0xc3b8
ret
Function at 0x407e40
Capabilities:
Create process on windows

Disassembly:
mov eax, 0xc3b8
call fcn.004170f0
mov eax, dword [0x4234e0]
xor eax, esp
mov dword [esp + 0xc3b0], eax
push ebp
push esi
push edi
push str._Spawner__Constructing_command..._n
mov byte [esp + 0x6c], 0
call fcn.00401480
call fcn.00409ba9
add eax, 0x20
push eax
call fcn.00409f3d
mov eax, dword [ebx]
add esp, 8
xor ebp, ebp
test eax, eax
je 0x407f0a
jmp 0x407e90
lea edi, [esp + 0x68]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407e97
mov cx, word [0x41e16c]
mov word [edi], cx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407eb0
lea edi, [esp + 0x68]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407ec4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x68]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407ee3
mov dx, word [0x420840]
mov cl, byte [0x420842]
mov word [eax], dx
add ebp, 1
mov byte [eax + 2], cl
mov eax, dword [ebx + ebp*4]
test eax, eax
jne 0x407e90
lea edx, [esp + 0x68]
push edx
push str._Spawner__Executing_command__s_n
call fcn.00401480
call fcn.00409ba9
add eax, 0x20
push eax
call fcn.00409f3d
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call fcn.004109c0
add esp, 0x18
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407fac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d_._n
call fcn.00401480
call fcn.00409ba9
add eax, 0x20
push eax
call fcn.00409f3d
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xc3b0]
xor ecx, esp
call fcn.00409294
add esp, 0xc3b8
ret
push str._Spawner__Create_process_seems_to_have_worked_n
call fcn.00401480
call fcn.00409ba9
add eax, 0x20
push eax
call fcn.00409f3d
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov ecx, dword [esp + 0xc3bc]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00409294
add esp, 0xc3b8
ret

Function at 0x4081e0
Capabilities:
Create thread

Disassembly:
cmp dword [0x424810], 0
push 0
jne 0x408244
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x424814
push 0
push 0x424810
push 0x4082f0
push 0
push 0
mov dword [0x424818], eax
call fcn.0040cbaa
add esp, 0x18
mov dword [0x424810], eax
mov eax, dword [0x424818]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408255
push str.Error_starting_SplashThread_n
call fcn.00401480
add esp, 4
ret
mov ecx, dword [0x424814]
push 2
push 6
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
ret
Function at 0x408280
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x424810], 0
je 0x4082df
mov eax, dword [0x424814]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [0x424810]
push 0x2328
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4082c6
mov edx, dword [0x424810]
push 0x8ae
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x424810]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x424818]
push ecx
call esi
pop esi
mov dword [0x424810], 0
ret

Function at 0x409294
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4234e0]
jne 0x40929e
repz ret
jmp fcn.0040ce7d

Function at 0x409d24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x409d51
call fcn.0040956c
mov dword [eax], esi
call fcn.00409559
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040e7b1
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x409d2d
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040957f
pop ecx
call fcn.00409559
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x409da7
test al, 1
je 0x409da7
test byte [esp + 0xc], 2
je 0x409da7
call fcn.0040956c
mov dword [eax], 5
call fcn.00409559
mov dword [eax], 0xd
jmp 0x409d77
xor eax, eax
pop esi
ret
Function at 0x414875
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040e13e
xor ebx, ebx
cmp dword [0x42532c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41494a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4148b5
xor eax, eax
jmp 0x414a0e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4148ae
push eax
call fcn.0040e0db
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42532c], eax
call esi
push eax
call fcn.0040e0db
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x425330], eax
call esi
push eax
call fcn.0040e0db
mov dword [0x425334], eax
lea eax, [ebp - 8]
push eax
call fcn.0040bed0
test eax, eax
pop ecx
pop ecx
je 0x414918
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e6b5
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41494a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040e0db
cmp eax, ebx
pop ecx
mov dword [0x42533c], eax
je 0x41494a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e0db
pop ecx
mov dword [0x425338], eax
mov eax, dword [0x425338]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4149c3
cmp dword [0x42533c], esi
je 0x4149c3
push eax
call fcn.0040e147
pop ecx
call eax
cmp eax, ebx
je 0x414990
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42533c]
call fcn.0040e147
pop ecx
call eax
test eax, eax
je 0x414990
test byte [ebp - 0x18], 1
jne 0x4149c3
lea eax, [ebp - 0xc]
push eax
call fcn.0040bf07
test eax, eax
pop ecx
je 0x4149ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e6b5
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4149ba
or dword [ebp + 0x10], 0x200000
jmp 0x4149f4
or dword [ebp + 0x10], 0x40000
jmp 0x4149f4
mov eax, dword [0x425330]
cmp eax, esi
je 0x4149f4
push eax
call fcn.0040e147
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4149f4
mov eax, dword [0x425334]
cmp eax, esi
je 0x4149f4
push dword [ebp - 4]
push eax
call fcn.0040e147
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42532c]
call fcn.0040e147
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x52a700
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcd000]
mov dword [edi + 0xcf740], 0x13800c02
push edi
jmp 0x52a72a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52a731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52a720
mov eax, 1
add ebx, ebx
jne 0x52a743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52a754
jne 0x52a773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52a773
dec eax
add ebx, ebx
jne 0x52a760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52a738
add ebx, ebx
jne 0x52a76f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52a7c5
xor ecx, ecx
sub eax, 3
jb 0x52a78b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52a7fa
sar eax, 1
mov ebp, eax
jmp 0x52a796
add ebx, ebx
jne 0x52a796
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52a764
inc ecx
add ebx, ebx
jne 0x52a7a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52a764
add ebx, ebx
jne 0x52a7b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52a7a6
jne 0x52a7c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52a7a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52a7e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52a7d6
jmp 0x52a726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52a7e4
add edi, ecx
jmp 0x52a726
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52a802
cmp byte [edi], 0x11
jne 0x52a802
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 0x52a807
lea edi, [esi + 0x123000]
mov eax, dword [edi]
or eax, eax
je 0x52a87f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16fd3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16feb8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52a834
mov ecx, edi
jns 0x52a863
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 + 0x16febc]
or eax, eax
je 0x52a879
mov dword [ebx], eax
add ebx, 4
jmp 0x52a851
call dword [esi + 0x16fecc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x52a8b0
cmp al, 0xef
ja 0x52a8a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x52a885
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x52a892
mov ebp, dword [esi + 0x16fec0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x52a8e4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x401420
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0x18
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x510]
push ebx
mov ebx, dword fs:[0x18]
sub esp, 0x51c
mov dword [ebp - 0x510], 0x18
nop
lea esi, [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.iphlpapi.dll_GetTcpTable]
sub esp, 0xc
test eax, eax
jne 0x4015d8
mov ecx, eax
mov eax, dword [edi]
lea ebx, [edi + 4]
test eax, eax
je 0x4015a9
mov dword [ebp - 0x514], edi
mov esi, ecx
mov esi, esi
lea edi, [edi]
mov eax, dword [ebx]
cmp eax, 0xb
ja 0x401593
mov ecx, 0x920
bt ecx, eax
jae 0x401593
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x48c]
lea edi, [ebp - 0x38c]
call sym._NETSTAT_host_name
lea ecx, [ebp - 0x50c]
mov eax, dword [ebx + 8]
mov edx, ecx
call sym._NETSTAT_port_name
mov eax, dword [ebx + 0xc]
mov edx, edi
call sym._NETSTAT_host_name
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x4cc]
call sym._NETSTAT_port_name
lea ecx, [ebp - 0x50c]
lea eax, [ebp - 0x48c]
mov dword [esp + 8], str._s:_s
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x28c]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xa0
call sym._swprintf
mov dword [esp + 0xc], edi
lea edx, [ebp - 0x4cc]
lea edi, [ebp - 0x14c]
mov dword [esp + 0x10], edx
mov dword [esp + 8], str._s:_s
mov dword [esp + 4], 0xa0
mov dword [esp], edi
call sym._swprintf
mov eax, dword [ebx]
lea ecx, [ebp - 0x28c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
shl eax, 5
mov dword [esp + 4], 0x4064ac
add eax, 0x406140
mov dword [esp], str.____6s___22s___22s__s_n
mov dword [esp + 0x10], eax
call sym._NETSTAT_wprintf
mov eax, dword [ebp - 0x514]
add esi, 1
add ebx, 0x14
cmp dword [eax], esi
ja 0x4014b0
mov edi, eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [ebp - 0x514], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x514]
sub esp, 0xc
cmp edx, 0x7a
jne 0x4015cd
mov eax, dword [ebp - 0x510]
jmp 0x401450
Function at 0x401620
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0xc
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x298
mov dword [ebp - 0x290], 0xc
lea esi, [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
lea eax, [ebp - 0x290]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.iphlpapi.dll_GetUdpTable]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401740
mov eax, dword [edi]
lea esi, [ebp - 0x28c]
test eax, eax
je 0x40170b
lea esi, [esi]
mov eax, dword [edi + ebx*8 + 4]
lea edx, [ebp - 0x24c]
call sym._NETSTAT_host_name
mov eax, dword [edi + ebx*8 + 8]
mov edx, esi
add ebx, 1
call sym._NETSTAT_port_name
lea eax, [ebp - 0x24c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14c]
mov dword [esp + 8], str._s:_s
mov dword [esp + 4], 0xa0
mov dword [esp], eax
call sym._swprintf
lea eax, [ebp - 0x14c]
mov dword [esp + 4], 0x406498
mov dword [esp + 8], eax
mov dword [esp], str.____6s___22s_:_n
call sym._NETSTAT_wprintf
cmp dword [edi], ebx
ja 0x4016a0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp ebx, 0x7a
jne 0x40172f
mov eax, dword [ebp - 0x290]
jmp 0x401648
Function at 0x4026a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4026f8
cmp byte [esi + ebx - 1], 0xa
je 0x4026cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4090a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x402ef8
mov edi, dword [0x4090a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x402e07
test byte [0x40401c], 8
jne 0x402ea0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x40402c], 8
jne 0x402e60
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402da9
cmp esi, 3
jbe 0x402e18
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x402dba
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4065a8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402da9
mov dword [esp], 0x40402c
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x402d80
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x402d80
mov dword [esp], 0x40401c
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x402d6b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x402d73
mov eax, 0xffffffff
jmp 0x402e07

Function at 0x402f70
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x40a94089
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..pdata_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x48c16341
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0x103e3
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047b432