joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x48f240]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [0x49bdb0]
push esi
push edi
push eax
call fcn.00401a70
mov edi, eax
add esp, 4
test edi, edi
je 0x40105f
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
mov dword [esp + 0x14], ecx
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401072
push edi
call fcn.00401db0
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004117b0
add esp, 0x1c
ret
push 0x10
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4010a8
push edi
call fcn.00401db0
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004117b0
add esp, 0x1c
ret
push esi
push edi
call fcn.00402030
push edi
call fcn.004020e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x401085
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004117b0
add esp, 0x1c
ret

Function at 0x401130
Capabilities:
Get socket status

Disassembly:
sub esp, 0x110
push ebp
mov ebp, dword [esp + 0x118]
push ebp
call fcn.00401fe0
add esp, 4
cmp eax, 0xffffffff
je 0x4011ae
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 1
mov dword [esp + 0x1c], 5
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4011ae
test eax, eax
jne 0x40118f
pop ebp
add esp, 0x110
ret
push 4
lea edx, [esp + 8]
push edx
push ebp
call fcn.004021a0
add esp, 0xc
test eax, eax
jl 0x4011ae
cmp eax, 4
jae 0x4011b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or eax, 0xffffffff
pop ebp
add esp, 0x110
ret
mov eax, dword [esp + 4]
push ebx
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov dword [esp + 0xc], eax
call fcn.0041189c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4011f6
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x124]
pop ebx
mov dword [ecx], eax
mov dword [edx], eax
or eax, 0xffffffff
pop ebp
add esp, 0x110
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ebx
mov edi, edi
push esi
push edi
push ebp
call fcn.004021a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x401222
sub esi, eax
add edi, eax
test esi, esi
jle 0x401253
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401200
push ebx
call fcn.004117bf
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x130]
add esp, 4
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov dword [ecx], 0
or eax, 0xffffffff
pop ebp
add esp, 0x110
ret
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
mov dword [edx], ebx
pop ebx
mov dword [ecx], eax
mov eax, 1
pop ebp
add esp, 0x110
ret
Function at 0x401280
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
push esi
push edi
lea edi, [ebx + 0x10]
push edi
call fcn.0041189c
mov esi, eax
add esp, 4
test esi, esi
je 0x4012c6
mov eax, dword [esp + 0x14]
push ebx
push eax
push esi
call fcn.00419b20
mov edx, dword [0x49bdb4]
add esp, 0xc
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0
push 1
push 0
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x4012cd
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x10]
call fcn.004012f0
push esi
mov edi, eax
call fcn.004117bf
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4012f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, eax
push edi
lea edi, [esi + 4]
push edi
call fcn.0041189c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40131a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10c
ret
push esi
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx], eax
mov eax, dword [esp + 0x120]
push esi
push eax
lea ecx, [ebx + 4]
push ecx
call fcn.00419b20
mov edx, dword [esp + 0x128]
push edx
call fcn.00401fe0
add esp, 0x10
cmp eax, 0xffffffff
je 0x40130d
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jle 0x4013ce
push ebp
mov ebp, ebx
mov edx, dword [esp + 0x120]
push edi
push ebp
push edx
call fcn.00402250
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x4013af
sub edi, esi
add ebp, esi
test edi, edi
jle 0x4013af
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401385
push ebx
call fcn.004117bf
add esp, 4
xor eax, eax
test esi, esi
setg al
pop ebp
pop edi
pop esi
pop ebx
lea eax, [eax + eax - 1]
add esp, 0x10c
ret
push ebx
call fcn.004117bf
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x4013f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x48f240]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401434
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004117b0
add esp, 0x19c
ret
call fcn.00402ff0
call fcn.00403160
push eax
call fcn.004027f0
add esp, 4
test eax, eax
mov dword [0x49bdb0], eax
je 0x401417
call fcn.004014d0
test eax, eax
je 0x401417
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov al, 1
call fcn.004117b0
add esp, 0x19c
ret
Function at 0x401470
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
push esi
push edi
call fcn.0041189c
mov esi, eax
add esp, 4
test esi, esi
jne 0x401486
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esp + 0xc]
push edi
push eax
push esi
call fcn.00419b20
mov edx, dword [0x49bdb4]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push esi
push 0
push 1
push 0
push edx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x401481
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov dword [eax], esi
mov dword [edx], ecx
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4014d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 0x12
push str.Microsoft_DH_SChannel_Cryptographic_Provider
push 0
push 0x49bdb8
call esi
test eax, eax
jne 0x401516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x401511
push 8
push 0x12
push str.Microsoft_DH_SChannel_Cryptographic_Provider
push 0
push 0x49bdb8
call esi
test eax, eax
jne 0x401516
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [0x49bdb8]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401511
mov eax, str._bz7_cc_MQ_
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401540
push 0
sub eax, edx
mov edx, dword [esp + 8]
push eax
push str._bz7_cc_MQ_
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401511
mov eax, dword [esp + 4]
mov ecx, dword [0x49bdb8]
push 0x49bdb4
push 0x400000
push eax
push 0x6601
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x401511
mov eax, dword [esp + 4]
test eax, eax
je 0x401596
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x4015a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x510
mov eax, dword [0x48f240]
xor eax, esp
mov dword [esp + 0x50c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x51c]
push esi
push edi
push 0x400
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call fcn.00414d40
push 0x48c074
push 0x49bdc0
call fcn.00411a23
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4015f7
xor edi, edi
jmp 0x401612
push 2
push 0
push esi
call fcn.00411abd
push esi
call fcn.00411cda
push esi
mov edi, eax
call fcn.00411dbb
add esp, 0x14
push 0x107
lea ecx, [esp + 0x15]
push 0
push ecx
call fcn.00414d40
add esp, 0xc
mov dword [esp + 0x10], edi
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x49bdc0]
mov byte [esp + eax + 0x14], cl
add eax, 1
test cl, cl
jne 0x401630
mov eax, 0x49bdc0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401650
sub eax, edx
lea edx, [esp + 0x10]
push edx
lea ebx, [eax + 5]
push ebp
call fcn.00401280
add esp, 8
cmp eax, 0xffffffff
je 0x4016d8
test eax, eax
je 0x401641
push 0x48c074
push 0x49bdc0
call fcn.00411a23
mov esi, eax
add esp, 8
test esi, esi
je 0x4016d8
test edi, edi
jbe 0x4016cf
push esi
push 0x400
lea eax, [esp + 0x120]
push 1
push eax
call fcn.00412094
add esp, 0x10
mov ebx, eax
jmp 0x4016b0
lea ecx, [esp + 0x118]
push ecx
push ebp
call fcn.00401280
add esp, 8
cmp eax, 0xffffffff
je 0x4016cf
cmp eax, 1
jne 0x4016b0
sub edi, ebx
jne 0x401691
push esi
call fcn.00411dbb
add esp, 4
mov ecx, dword [esp + 0x51c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004117b0
add esp, 0x510
ret

Function at 0x4117b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48f240]
jne 0x4117ba
repz ret
jmp fcn.004128f5
Function at 0x417c58
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00416087
xor ebx, ebx
cmp dword [0x49b28c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x417d2d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x417c98
xor eax, eax
jmp 0x417df1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x473cd8
push edi
call esi
cmp eax, ebx
je 0x417c91
push eax
call fcn.00416024
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x49b28c], eax
call esi
push eax
call fcn.00416024
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49b290], eax
call esi
push eax
call fcn.00416024
mov dword [0x49b294], eax
lea eax, [ebp - 8]
push eax
call fcn.004139ef
test eax, eax
pop ecx
pop ecx
je 0x417cfb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004143a0
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x417d2d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00416024
cmp eax, ebx
pop ecx
mov dword [0x49b29c], eax
je 0x417d2d
push 0x473c80
push edi
call esi
push eax
call fcn.00416024
pop ecx
mov dword [0x49b298], eax
mov eax, dword [0x49b298]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x417da6
cmp dword [0x49b29c], esi
je 0x417da6
push eax
call fcn.00416090
pop ecx
call eax
cmp eax, ebx
je 0x417d73
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x49b29c]
call fcn.00416090
pop ecx
call eax
test eax, eax
je 0x417d73
test byte [ebp - 0x18], 1
jne 0x417da6
lea eax, [ebp - 0xc]
push eax
call fcn.00413a26
test eax, eax
pop ecx
je 0x417d8e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004143a0
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x417d9d
or dword [ebp + 0x10], 0x200000
jmp 0x417dd7
or dword [ebp + 0x10], 0x40000
jmp 0x417dd7
mov eax, dword [0x49b290]
cmp eax, esi
je 0x417dd7
push eax
call fcn.00416090
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417dd7
mov eax, dword [0x49b294]
cmp eax, esi
je 0x417dd7
push dword [ebp - 4]
push eax
call fcn.00416090
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 [0x49b28c]
call fcn.00416090
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4225e0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.004123a0
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x422629
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x422629
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x48f470
call fcn.0046e310
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call fcn.0046e1a7
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x42272b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x4226e6
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x4226e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4226e6
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x4226e6
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.004123a0
lea eax, [ebp - 4]
mov edi, esp
push eax
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x4226e6
mov ecx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [ecx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call fcn.0046e097
add esp, 8
test eax, eax
je 0x42272b
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422f40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x422fa1
mov al, byte [edi]
test al, al
je 0x422fa1
push ebx
push ebp
mov ebx, 0x100
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x422f59
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x10001650
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.100012a0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push dword [0x1001845c]
call esi
mov eax, dword [0x1001845c]
mov ecx, 0x10001170
sub ecx, eax
sub ecx, 5
mov byte [eax], 0xe9
mov eax, dword [0x1001845c]
mov dword [eax + 1], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push dword [0x10018464]
call esi
mov eax, dword [0x10018464]
mov ecx, 0x10001240
sub ecx, eax
sub ecx, 5
mov byte [eax], 0xe9
mov eax, dword [0x10018464]
mov dword [eax + 1], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push dword [0x1001847c]
call esi
mov eax, dword [0x1001847c]
mov ecx, 0x10001270
push dword [ebp + 0xc]
sub ecx, eax
push dword [ebp + 8]
mov byte [eax], 0xe9
sub ecx, 5
mov eax, dword [0x1001847c]
mov dword [eax + 1], ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push esi
push edi
push 0x27
lea eax, [ebp - 0xe4]
mov dword [ebp - 0x28], 0x87d8b57
push 0
push eax
mov dword [ebp - 0x24], 0x74287e3b
mov dword [ebp - 0x20], 0x2c7e3b14
mov dword [ebp - 0x1c], 0x7e3b0f74
mov dword [ebp - 0x18], 0x3b0a7434
mov dword [ebp - 0x14], 0x574387e
mov dword [ebp - 0x10], 0x753c7e3b
mov dword [ebp - 0xc], 0xc0325f08
mov dword [ebp - 8], 0x4c25d5e
mov word [ebp - 4], 0x5300
mov byte [ebp - 2], 0x57
mov dword [ebp - 0x5c], 0x56ec8b55
mov dword [ebp - 0x58], 0x8b08758b
mov dword [ebp - 0x54], 0x4508b06
mov dword [ebp - 0x50], 0x8bf98b57
mov dword [ebp - 0x4c], 0x84d2ffce
mov dword [ebp - 0x48], 0x8b3c74c0
mov dword [ebp - 0x44], 0x8508b06
mov dword [ebp - 0x40], 0xd2ffce8b
mov dword [ebp - 0x3c], 0x3774c084
mov dword [ebp - 0x38], 0x508b068b
mov dword [ebp - 0x34], 0xffce8b0c
mov dword [ebp - 0x30], 0x74c084d2
mov byte [ebp - 0x2c], 0x2a
mov dword [ebp - 0xbc], 0x56ec8b55
mov dword [ebp - 0xb8], 0x7e80f18b
mov dword [ebp - 0xb4], 0xf57006c
mov dword [ebp - 0xb0], 0x9e85
mov dword [ebp - 0xac], 0x50468b00
mov dword [ebp - 0xa8], 0x3b087d8b
mov dword [ebp - 0xa4], 0x90840fc7
mov dword [ebp - 0xa0], 0x83000000
mov dword [ebp - 0x9c], 0x107705f8
mov dword [ebp - 0x98], 0xfffe97e8
mov dword [ebp - 0x94], 0x8b068bff
mov dword [ebp - 0x90], 0x6a2850
mov dword [ebp - 0x8c], 0xd2ffce8b
mov dword [ebp - 0x88], 0x8905ff83
mov dword [ebp - 0x84], 0x870f507e
mov dword [ebp - 0x80], 0xba
mov dword [ebp - 0x7c], 0x10bd24ff
mov dword [ebp - 0x78], 0x68009c22
mov dword [ebp - 0x74], 0xffffff
mov dword [ebp - 0x70], 0xade8ce8b
mov dword [ebp - 0x6c], 0xd9fffffe
mov dword [ebp - 0x68], 0x5ed95fee
mov dword [ebp - 0x64], 0xc25d5e5c
mov word [ebp - 0x60], 8
call fcn.10004f50
push 0x31
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.10004f50
push 0x5e
lea eax, [ebp - 0x178]
push 0
push eax
call fcn.10004f50
add esp, 0x24
lea edi, [ebp - 0xe4]
mov esi, dword [0x100184bc]
mov ecx, 0x27
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x118]
mov esi, dword [0x100184c0]
mov ecx, 0x31
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x178]
mov esi, dword [0x100184c4]
mov ecx, 0x5e
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
mov esi, 0x23
lea edx, [ebp - 0xe4]
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10002591
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10002520
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x10002591
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10002591
lea ecx, [ebp - 0x5c]
mov esi, 0x2d
lea edx, [ebp - 0x118]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10002591
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10002550
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10002591
lea ecx, [ebp - 0xbc]
mov esi, 0x5a
lea edx, [ebp - 0x178]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10002591
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10002578
mov ax, word [ecx]
cmp ax, word [edx]
je 0x100025a2
mov edi, dword [ebp + 8]
lea esi, [0x100178e0]
mov ecx, dword [0x10017920]
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007630
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000766f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000766f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000766f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000766f
cmp dword [ecx + 0x74], 0xe
jbe 0x1000766f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000a2b4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000a351
push ebx
push esi
call fcn.1000a27d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000a211
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000a2fe
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a350
push edi
push eax
call fcn.10008ce4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000a31e
call fcn.10008ddb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a34f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000a211
add esp, 0x20
test eax, eax
jne 0x1000a33d
push edi
call fcn.10008ddb
jmp 0x1000a345
push ebx
call fcn.10008ddb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000a5be
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012008
push 0x10012000
push str.FlsAlloc
push 0x1f
call fcn.1000a4da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a5f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001011c]
call esi
jmp 0x1000a5f8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000a63c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012018
push 0x10012010
push str.FlsGetValue
push 0x21
call fcn.1000a4da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a673
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001011c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000a67b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012020
push 0x10012018
push str.FlsSetValue
push 0x22
call fcn.1000a4da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a6b5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001011c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000fb10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000fb3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000fb3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000ba71
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor eax, eax
inc ebx
mov esi, edx
cmp ax, word [edi]
je 0x1000baf5
push 0x10039374
push edi
call fcn.1001de79
pop ecx
pop ecx
test eax, eax
jne 0x1000baf5
push 0x100396a4
push edi
call fcn.1001de79
pop ecx
pop ecx
test eax, eax
jne 0x1000baf5
push 0x5c
pop eax
push eax
push esi
jmp 0x1000bae4
push 0x3a
pop eax
cmp ax, word [esi - 2]
je 0x1000bad9
xor eax, eax
push eax
push edi
mov word [esi], ax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000bad6
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000bad6
xor ebx, ebx
jmp 0x1000bad9
xor ebx, ebx
inc ebx
push 0x5c
pop eax
push eax
lea ecx, [esi + 2]
mov word [esi], ax
push ecx
call fcn.1001ddb2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1000baab
mov eax, ebx
jmp 0x1000baf7
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x1000bc32
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp ecx, 0xffffffff
je 0x1000bc66
xor eax, eax
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1000bc66
cmp dword [ebp - 4], 2
jne 0x1000bc66
movzx eax, word [ebp - 8]
leave
ret
or eax, 0xffffffff
leave
ret