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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.004082d0
add esp, 0xc
mov esi, 0x200
push esi
lea eax, [ebp - 0x418]
push ebx
push eax
mov dword [ebp - 0x214], 0x504d534d
call fcn.004082d0
add esp, 0xc
lea ecx, [ebp - 0x418]
push ebx
push str.golfset.ini
call fcn.00401cc8
pop ecx
pop ecx
test eax, eax
je 0x4027af
mov eax, ebx
not byte [ebp + eax - 0x418]
inc eax
cmp eax, esi
jb 0x4026ae
lea eax, [ebp - 0x418]
lea ecx, [ebp - 0x214]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4027af
mov ecx, 0x80
lea esi, [ebp - 0x418]
lea edi, [ebp - 0x618]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
movzx eax, word [ecx + 0x415890]
mov word [ecx + 0x419018], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4026e5
mov ecx, ebx
movzx eax, word [ebp + ecx - 0x592]
mov word [ecx + 0x419120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4026fd
movzx eax, word [ebp + ebx - 0x614]
mov word [ebx + 0x4190a0], ax
lea ebx, [ebx + 2]
test ax, ax
jne 0x402714
cmp dword [0x417f08], 3
mov ax, word [ebp - 0x394]
mov word [0x419098], ax
mov ax, word [ebp - 0x2f2]
mov word [0x419010], ax
mov dword [0x41900c], 5
lea eax, [ebp - 0x210]
mov esi, 0x104
je 0x40276d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40278a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415998
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040488b
add esp, 0xc
push str.golfset.ini
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040488b
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004046ea
leave
ret

Function at 0x4027c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [0x417f08], 0
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40287d
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402841
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x402829
cmp eax, 1
jne 0x40287d
mov dword [0x417f08], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x40287d
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x402868
mov dword [0x417f08], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
mov eax, dword [0x417f08]
mov edx, 5
cmp ecx, 1
cmove eax, edx
mov dword [0x417f08], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x402890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, edx
mov esi, ecx
call fcn.004082d0
add esp, 0xc
cmp dword [0x417f08], 3
lea eax, [ebp - 0x20c]
jne 0x4028fd
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415998
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040488b
add esp, 0xc
jmp 0x402909
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.exe
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.004046ea
mov esp, ebp
pop ebp
ret

Function at 0x4029f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
je 0x402b0d
push 0x400
call fcn.004056f7
add esp, 4
mov ebx, eax
push 0x400
push 0
push ebx
call fcn.004082d0
add esp, 0xc
mov ecx, esi
call fcn.00402bc0
xor ecx, ecx
shld ecx, eax, 9
xorps xmm0, xmm0
shl eax, 9
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push 0x400
push ebx
movq qword [ebp - 0x10], xmm0
push esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b04
cmp dword [ebx + 4], 0x5042475f
jne 0x402acb
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a90
sub ecx, edx
sar ecx, 1
je 0x402acb
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00405789
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
push ebx
push 2
mov edx, 0x1e
mov ecx, esi
call fcn.00402ca0
add esp, 8
test eax, eax
je 0x402b04
cmp dword [ebx + 4], 0x5042475f
jne 0x402b04
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402af3
sub ecx, edx
sar ecx, 1
jne 0x402aa1
push ebx
call fcn.00405789
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x402f70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x41599c
push ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call fcn.00404a82
add esp, 0xc
test eax, eax
je 0x402fb5
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push dword [ebp - 8]
call fcn.00405850
push dword [ebp - 8]
call fcn.00405c28
push 0
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00405850
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x10], eax
call fcn.004056f7
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.00404d54
push dword [ebp - 8]
call fcn.00404e6c
push edi
add ebx, esi
push 0
push ebx
call fcn.004082d0
mov eax, edi
cdq
and edx, 3
add esp, 0x40
lea edi, [edx + eax]
sar edi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00405cb3
add esp, 4
xor esi, esi
test edi, edi
jle 0x40303d
lea ecx, [ecx]
call fcn.00405c90
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x403030
push 0x4159bc
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00404a82
add esp, 0xc
test eax, eax
je 0x403068
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push esi
call fcn.0040503a
push dword [ebp - 8]
call fcn.00404e6c
add esp, 0x14
test esi, esi
je 0x403091
push esi
call fcn.00405789
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x403cd0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b4
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
test eax, eax
lea esi, [ebp - 0x808]
cmovne esi, eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [esi], ax
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x9b0]
push eax
push 0x101
mov dword [ebp - 0x9b4], edx
mov ebx, ecx
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403d35
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x403d22
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403d75
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x80c], eax
push 4
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403dce
mov eax, dword [eax + 0xc]
push dword [ebp - 0x9b4]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x818], eax
mov eax, 2
mov word [ebp - 0x81c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x81a], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403dce
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
test ecx, ecx
je 0x403ddd
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, ecx
push esi
xor esi, esi
mov ebx, edx
mov dword [ebp - 8], eax
cmp dword [eax], esi
je 0x403fe8
push edi
mov edi, dword [ebp + 8]
xor eax, eax
test edi, edi
jle 0x403f88
nop
not byte [eax + ebx]
inc eax
cmp eax, edi
jl 0x403f80
lea eax, [edi + 7]
push eax
call fcn.00405e17
mov ecx, eax
lea eax, [edi + 5]
mov word [ecx], ax
mov eax, dword [str.AS101]
mov dword [ecx + 2], eax
mov al, byte [0x417f14]
push edi
mov byte [ecx + 6], al
lea eax, [ecx + 7]
push ebx
push eax
mov dword [ebp - 4], ecx
call fcn.00408f30
mov eax, dword [ebp - 8]
add esp, 0x10
lea ebx, [edi + 7]
mov edi, dword [ebp - 4]
push 0
push ebx
push edi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x403fde
mov ecx, 1
cmp eax, ebx
cmove esi, ecx
push edi
call fcn.0040620b
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4041f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x8dc], eax
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
lea esi, [ebp - 0x8cc]
cmovne esi, eax
xor eax, eax
mov word [esi], ax
mov esi, dword [ecx]
xor ebx, ebx
mov dword [ebp - 0x8d0], edx
mov dword [ebp - 0x8d8], ecx
test esi, esi
je 0x404361
test edx, edx
je 0x404361
push 0xc7
mov byte [ebp - 0xcc], al
lea eax, [ebp - 0xcb]
push ebx
push eax
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0xcc]
push ebx
push 2
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404371
test eax, eax
je 0x404371
movzx eax, word [ebp - 0xcc]
mov dword [ebp - 0x8d4], eax
add eax, 2
push edi
push eax
xor esi, esi
call fcn.00405e17
mov edi, eax
mov eax, dword [ebp - 0x8d4]
add esp, 4
test eax, eax
jle 0x404351
lea ebx, [ebx]
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov eax, dword [ebp - 0x8d8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40434b
test eax, eax
je 0x40434b
add esi, eax
mov eax, dword [ebp - 0x8d4]
cmp eax, esi
jg 0x4042b0
cmp esi, 5
jl 0x404351
mov ecx, str.AS101
sub esi, 5
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x404351
movzx eax, byte [ecx + 4]
cmp al, byte [edi + 4]
jne 0x404351
test esi, esi
jle 0x404309
lea ecx, [edi + 5]
mov edx, esi
not byte [ecx]
lea ecx, [ecx + 1]
dec edx
jne 0x404301
mov ebx, dword [ebp - 0x8dc]
mov eax, dword [ebx]
cmp eax, esi
jl 0x404331
push esi
lea eax, [edi + 5]
push eax
push dword [ebp - 0x8d0]
call fcn.00408f30
mov dword [ebx], esi
add esp, 0xc
mov ebx, 1
jmp 0x404351
push eax
lea eax, [edi + 5]
push eax
push dword [ebp - 0x8d0]
call fcn.00408f30
add esp, 0xc
mov ebx, 1
jmp 0x404351
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x40435e
push edi
call fcn.0040620b
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x404390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe24
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x610]
push 0
push eax
mov dword [ebp - 0xe20], edx
mov ebx, ecx
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0x610]
push ebx
push 0x1ff
push eax
call fcn.0040482f
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4043e0
sub ecx, edx
sar ecx, 1
lea edi, [ebp - 0x60e]
mov esi, 0x419920
lea edi, [edi + ecx*2]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x404407
sub ebx, ecx
sar ebx, 1
push 0x10000
lea ebx, [ebx*2 + 0x202]
call fcn.004056f7
add esp, 4
mov esi, eax
push 0x10000
push 0
push esi
call fcn.004082d0
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push eax
mov dword [ebp - 0xe1c], 0x10000
call fcn.004082d0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
xor edi, edi
push eax
mov dword [ebp - 0xe18], 0
mov dword [ebp - 0xe14], edi
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xe20]
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.00403cd0
add esp, 8
test eax, eax
je 0x40458e
lea eax, [ebp - 0xe10]
push eax
push ebx
lea eax, [ebp - 0x610]
mov ebx, 0xbba
push eax
mov edx, ebx
lea ecx, [ebp - 0xe18]
call fcn.00403df0
add esp, 0xc
test eax, eax
je 0x40458e
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe1c]
push eax
push esi
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.00403ff0
add esp, 0xc
test eax, eax
je 0x40458e
cmp word [ebp - 0xe14], bx
jne 0x40458e
cmp dword [ebp - 0xe1c], edi
je 0x40458e
cmp byte [esi], 0
jne 0x40458e
push 0x4191a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040488b
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x4159bc
push eax
lea eax, [ebp - 0xe14]
push eax
mov dword [ebp - 0xe14], edi
call fcn.00404a82
add esp, 0xc
cmp dword [ebp - 0xe14], edi
je 0x404589
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.004045c0
mov edi, 1
test esi, esi
je 0x40459b
push esi
call fcn.00405789
add esp, 4
mov eax, dword [ebp - 0xe18]
test eax, eax
je 0x4045ac
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x40f166
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004065aa
mov dword [ebp - 0x14], eax
cmp dword [0x418d84], edi
jne 0x40f257
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40f1e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f337
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40f337
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f337
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x418d84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x418d88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x418d8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x418d94], eax
test eax, eax
je 0x40f254
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x418d90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f27c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f26f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40f291
push 4
pop eax
jmp 0x40f339
cmp dword [ebp - 0x14], edi
je 0x40f291
push dword [0x418d84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f276
mov eax, dword [0x418d90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40f2ef
cmp dword [0x418d94], esi
je 0x40f2ef
push eax
call ebx
push dword [0x418d94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f2ef
test eax, eax
je 0x40f2ef
call ecx
test eax, eax
je 0x40f2e4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f2e4
test byte [ebp - 8], 1
jne 0x40f2ef
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40f31f
mov eax, dword [0x418d88]
cmp eax, esi
je 0x40f31c
push eax
call ebx
test eax, eax
je 0x40f31c
call eax
mov edi, eax
test edi, edi
je 0x40f31c
mov eax, dword [0x418d8c]
cmp eax, esi
je 0x40f31c
push eax
call ebx
test eax, eax
je 0x40f31c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x418d84]
call ebx
test eax, eax
je 0x40f337
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40f339
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046ea
leave
ret
Function at 0x1387d51
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x139fd2b
sub esp, 0x24
mov eax, dword [0x1402154]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x139fd99
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.013884d6
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.0138a5fb
pop ecx
pop ecx
test al, al
jne 0x139fdb0
lea ecx, [esp + 0x18]
add edi, 4
call fcn.0138a57e
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x139fd64
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.013899ad
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.0138a57e
jmp 0x139fd9b

Function at 0x138a7b3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x13a07aa
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x13a089e
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0x14054f8
mov bl, byte [esi + edi]
push 0x13e75c8
push ebp
call fcn.01389660
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0x1341f3c
push 0x13e75d4
mov bh, byte [edx + section..euro]
push 0x14055e0
xor bh, bl
call fcn.01389660
pop ecx
pop ecx
mov ecx, eax
call fcn.0138c70c
mov bl, byte [esi + edi]
push 0x1341f3c
push 0x13e75e4
push ebp
call fcn.01389660
pop ecx
pop ecx
mov ecx, eax
call fcn.0138c70c
add byte [esi + edi], bh
push 0x1341f3c
push 0x13e75f8
push ebp
call fcn.01389660
pop ecx
pop ecx
mov ecx, eax
call fcn.0138c70c
dec byte [esi + edi]
push 0x13e7618
push ebp
call fcn.01389660
add byte [esi + edi], 0xfe
push 0x13e7624
push ebp
call fcn.01389660
sub byte [esi + edi], bl
push 0x13e7638
push ebp
call fcn.01389660
inc byte [esi + edi]
push 0x13e7648
push ebp
call fcn.01389660
inc byte [esi + edi]
push 0x13e7654
push ebp
call fcn.01389660
inc byte [esi + edi]
push 0x13e7660
push ebp
call fcn.01389660
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0x13a07c3
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x138cb1c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x139fdf6
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x1435f88], eax
pop edi
pop esi
ret
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.00401902
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x404415]
lea edx, [fcn.00401974]
sub eax, edx
push eax
push fcn.00401974
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401341
push esi
call fcn.004017e8
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00401832
mov eax, esi
add eax, 0x1cc00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, esi
inc ecx
cdq
idiv ecx
push eax
lea edi, [0x4060e4]
mov eax, esi
lea ebx, [0x4060e4]
or bl, 1
mul ebx
mov dword [ebp - 0x8c], eax
mov ebx, eax
sub edi, eax
push edi
call fcn.00401974
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401902
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
call sub.KERNEL32.dll_GetLastError
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
mov eax, edi
pop edi
leave
ret