joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450529
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00450480
add esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x450558
mov eax, 0xea61
jmp 0x4505d6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x3c], 0
jne 0x450568
mov eax, 0xea62
jmp 0x4505d6
push 0xf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00450480
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x450595
mov eax, 0xea62
jmp 0x4505d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x14c
je 0x4505ad
mov eax, 0xea65
jmp 0x4505d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
test ch, 0x10
je 0x4505c2
mov eax, 0xea66
jmp 0x4505d6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x74], 0x10
jbe 0x4505d2
mov eax, 0xea67
jmp 0x4505d6
xor eax, eax
jmp 0x4505d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406993
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040587b
and dword [ebp - 4], 0
cmp dword [0x40f590], 0
mov ebx, eax
jne 0x406a44
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406af5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40bb5c
push edi
call esi
test eax, eax
je 0x406af5
push eax
call fcn.00405809
mov dword [esp], 0x40bb4c
push edi
mov dword [0x40f590], eax
call esi
push eax
call fcn.00405809
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f594], eax
call esi
push eax
call fcn.00405809
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40f598], eax
call esi
push eax
call fcn.00405809
pop ecx
mov dword [0x40f5a0], eax
test eax, eax
je 0x406a44
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405809
pop ecx
mov dword [0x40f59c], eax
mov eax, dword [0x40f59c]
cmp eax, ebx
je 0x406a9c
cmp dword [0x40f5a0], ebx
je 0x406a9c
push eax
call fcn.00405884
push dword [0x40f5a0]
mov esi, eax
call fcn.00405884
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406a9c
test edi, edi
je 0x406a9c
call esi
test eax, eax
je 0x406a93
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406a93
test byte [ebp - 0xc], 1
jne 0x406a9c
or dword [ebp + 0x10], 0x200000
jmp 0x406ad5
mov eax, dword [0x40f594]
cmp eax, ebx
je 0x406ad5
push eax
call fcn.00405884
pop ecx
test eax, eax
je 0x406ad5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406ad5
mov eax, dword [0x40f598]
cmp eax, ebx
je 0x406ad5
push eax
call fcn.00405884
pop ecx
test eax, eax
je 0x406ad5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f590]
call fcn.00405884
pop ecx
test eax, eax
je 0x406af5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406af7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408828
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40ea18]
jne 0x408832
repz ret
jmp fcn.00409f55
Function at 0x4015a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4015c4
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004012d6
salc
xor edi, esi
mov edi, 0x50c0458d
call fcn.004012e6
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.0040129b
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004012d6
jg 0x401637
adc byte [ecx - 0x877b], cl
invalid
invalid
jbe 0x40162d
lea eax, [ebp - 0x18]

Function at 0x401620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4015c4
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004012d6
salc
xor edi, esi
mov edi, 0x50c0458d
call fcn.004012e6
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.0040129b
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004012d6
jg 0x401637
adc byte [ecx - 0x877b], cl
invalid
invalid
jbe 0x40162d
lea eax, [ebp - 0x18]

Function at 0x401640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
invalid
inc ebp

Function at 0x401730
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
jecxz 0x40179d
mov byte [ebp - 0x1c], 0x2b
call fcn.004012e6
push eax
push esi
push dword [ebp + 8]
call fcn.0040129b
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004012d6
cmp bl, 0xff
call esi
inc ecx
adc esi, edi
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
invalid
popfd
jg 0x40176e
invalid
Function at 0x401750
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
jecxz 0x40179d
mov byte [ebp - 0x1c], 0x2b
call fcn.004012e6
push eax
push esi
push dword [ebp + 8]
call fcn.0040129b
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004012d6
cmp bl, 0xff
call esi
inc ecx
adc esi, edi
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
invalid
popfd
jg 0x40176e
invalid

Function at 0x402230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.004012e6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040129b
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.004012d6
xchg esi, eax
and ebp, eax
add dword [eax + 4], ebp
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid
Function at 0x10001174
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, 0x100322a0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10001269
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100011a5
push ebx
call fcn.10017677
add esp, 4
push 0x80000301
push 0
push 0x18f
push 1
mov ebx, 0x1bc
call fcn.10017c30
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100011da
push ebx
call fcn.10017677
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xa04
call fcn.10017c60
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x10001218
add eax, 8
push eax
mov eax, dword [ebp - 8]
cwde
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10001244
push 0xb8
push 0x4023d68
push 6
call fcn.10017689
add esp, 0xc
mov dword [0x10032d30], eax
mov eax, 0
jmp 0x10001253
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10001264
push ebx
call fcn.10017677
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x1000316d
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, 0x100322a0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10001269
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000319e
push ebx
call fcn.10017677
add esp, 4
cmp dword [ebp + 8], 0
je 0x100031bb
push 1
lea eax, [ebp - 4]
push eax
call fcn.100032cb
jmp 0x10003205
mov dword [ebp - 8], esp
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10003202
push 0x86
push 0x4023d88
push 6
call fcn.10017689
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000329c
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 0xa
jg 0x10003299
push 0x80000301
push 0
push 0x32
push 1
mov ebx, 0x67c
call fcn.10018370
add esp, 0x10
mov dword [ebp - 8], esp
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10003281
push 0x16d
push 0x4023d88
push 6
call fcn.10017689
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x10003293
jmp 0x10003299
pop ecx
jmp 0x10003211
add esp, 4
mov eax, 0x1003242e
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10003555
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100032bd
push ebx
call fcn.10017677
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x100032c5
mov esp, ebp
pop ebp
ret 4
Function at 0x10004d02
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, 0x100322a0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.10001269
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10004d2c
push ebx
call fcn.10017677
add esp, 4
mov dword [ebp - 4], esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10004d55
push 0x4d
push 0x4023d7d
push 6
call fcn.10017689
add esp, 0xc
push eax
push 0x2c
push dword [ebp + 8]
call fcn.100040e3
push 0x20
push dword [ebp + 8]
call fcn.10003a7e
mov dword [ebp - 4], eax
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x10032478]
fstp qword [ebp - 0x14]
mov dword [ebp - 0x18], esp
push 0
push dword [ebp + 8]
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 1
fld qword [ebp - 0x14]
call fcn.1000165d
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_WSARecv]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10004ddf
push 0xb6
push 0x4023d7d
push 6
call fcn.10017689
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x10004e2d
mov dword [ebp - 4], esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10004e15
push 0x130
push 0x4023d7d
push 6
call fcn.10017689
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
je 0x10004e2d
push dword [ebp + 8]
call fcn.10003ac5
mov eax, 0
jmp 0x10004e37
mov esp, ebp
pop ebp
ret 4
Function at 0x10006b25
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10006b5c
push 0x12
push 0x402410e
push 6
call fcn.10017689
add esp, 0xc
jmp 0x10006b61
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, str.IOCP_
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.10001269
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10006c7c
push ebx
call fcn.10017677
add esp, 4
push htons
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x10006c91
mov eax, 0x1003232f
push eax
push 1
mov ebx, 0x194
call fcn.10018640
add esp, 0x10
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.1000442e
fild dword [ebp - 4]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x1003253f]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.1000165d
push eax
call fcn.10004031
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
push 0x20
push dword [ebp - 8]
call fcn.100040e3
fild dword [ebp - 4]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x1003253f]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.1000165d
push eax
push 0x44
push dword [ebp - 8]
call fcn.100040e3
push dword [ebp - 0xc]
push 0x48
push dword [ebp - 8]
call fcn.100040e3
push 0x3ea
push 0x18
push dword [ebp - 8]
call fcn.100040e3
push 0xfa1
push 0x54
push dword [ebp - 8]
call fcn.100040e3
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x198
call fcn.100182a0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push 0x10032547
push dword [ebp - 0x10]
push 0x1003255b
mov ecx, 4
call fcn.10001946
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10006d95
push ebx
call fcn.10017677
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x1003253f]
fstp qword [ebp - 0x24]
mov dword [ebp - 0x28], esp
fld qword [ebp - 0x24]
call fcn.1000165d
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10006dbd
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10006de7
push 0x2d4
push 0x4023d82
push 6
call fcn.10017689
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10006df7
push ebx
call fcn.10017677
add esp, 4
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x10032478]
fstp qword [ebp - 0x1c]
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 8]
push 0
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 1
fld qword [ebp - 0x1c]
call fcn.1000165d
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x10006e5c
push 0x357
push 0x4023d82
push 6
call fcn.10017689
add esp, 0xc
jmp 0x10006e61
mov esp, ebp
pop ebp
ret 8
Function at 0x10007547
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push dword [ebp + 8]
push 1
push 0x1f0fff
call fcn.100075a8
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x1000759d
push 0x52
push 0x4021762
push 6
call fcn.10017689
add esp, 0xc
jmp 0x100075a2
mov esp, ebp
pop ebp
ret 4

Function at 0x10008878
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x1000892b
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x10008964
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.10018e70
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100089a9
push ebx
call fcn.10017677
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100089de
push 0x36
push 0x40243f7
push 6
call fcn.10017689
add esp, 0xc
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100089f1
mov eax, 0x100322a0
push eax
push 1
mov ebx, 0x170
call fcn.10018eb0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x10008a0f
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10008a20
push ebx
call fcn.10017677
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x1000dc07
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.10018e70
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000dc4c
push ebx
call fcn.10017677
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x100322a0
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.10001e82
add esp, 8
cmp eax, 0
jne 0x1000dca2
mov eax, dword [0x10032dd0]
test eax, eax
je 0x1000dc89
push eax
mov ebx, eax
call fcn.10001596
inc eax
push eax
call fcn.10017671
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000dc9c
push ebx
call fcn.10017677
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x1000dcdd
push 0x1d5
push 0x4024420
push 6
call fcn.10017689
add esp, 0xc
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000dcf0
mov eax, 0x100322a0
push eax
push 1
mov ebx, 0x170
call fcn.10018eb0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x1000dd0e
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000dd1f
push ebx
call fcn.10017677
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1000dd26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.10018e70
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000dd6b
push ebx
call fcn.10017677
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x1000dda0
push 0x36
push 0x402441f
push 6
call fcn.10017689
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000ddbc
push eax
mov ebx, eax
call fcn.10001596
inc eax
push eax
call fcn.10017671
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000ddc1
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000ddd2
push ebx
call fcn.10017677
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x1000e13a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10008878
test eax, eax
je 0x1000e17d
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x1000e17d
cmp word [eax], 0x5a4d
jne 0x1000e17d
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x1000e17d
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000e19c
mov eax, dword [ebp + 8]
jmp 0x1000e196
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e338
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x1000e35a
mov eax, 0xfffffffd
jmp 0x1000e43a
mov ebx, dword [0x10032dcc]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x1000e408
mov ebx, dword [0x10032dcc]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x1000e3a9
mov ebx, dword [0x10032dcc]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x1000e3a9
mov eax, 1
jmp 0x1000e3ae
mov eax, 0
test eax, eax
je 0x1000e3da
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x1000e3c3
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x10032dcc]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x1000e430
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x1000e43a
mov esp, ebp
pop ebp
ret 4
Function at 0x10018680
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10018712
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x10018704
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x100186fc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x100186c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x10018960
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x208
test eax, eax
push ebx
push esi
push edi
jne 0x1001898b
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x100189b3
mov byte [esp + 0xc], al
jmp 0x100189b3
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xc]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
je 0x100189d1
mov byte [eax], 0x5c
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call edi
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x118]
push str._s_x.tmp
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
jne 0x100189e3
lea ecx, [esp + 0x110]
push ecx
call fcn.1001a330
inc eax
push eax
call fcn.100179b0
mov edx, eax
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x208
ret