joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x506480
mov esi, edx
mov edi, ecx
mov ecx, 8
mov edx, 4
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x5dd938]
call fcn.00421010
test eax, eax
je 0x4e391c
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x4e39c0
push esi
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x4e38bd
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4e390b
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x4e38f2
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x24]
call fcn.00421070
mov ecx, dword [ebp - 0x28]
mov edx, 4
call fcn.00421070
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.00536ff0
ud2
Function at 0x4e3e00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.00527420
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5064b0
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.00528820
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x4dbca0
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x4e3f54
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4e3e8a
cmp dword [ebp - 0x2c], 0
jne 0x4e3f65
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4e3f65
cmp esi, 0x1000
ja 0x4e3fa1
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4e3f87
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x4dbca0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x4e3f5c
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4e3f00
cmp dword [ebp - 0x2c], 0
jne 0x4e3f62
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x4e3ec0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x4dbca0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x4e3e8a
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x4e3f65
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x5904e8
call fcn.00537570
add esp, 4
jmp 0x4e3fbc
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x5904e8
call fcn.00537350
add esp, 4
ud2
Function at 0x4e4090
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x5064d0
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x4e410e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x5905fc
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x590628
mov dword [esi + 0x2c], fcn.004d4f10
mov dword [esi + 0x3c], 1
call fcn.00537260
ud2
Function at 0x4e95d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x506610
mov ebx, ecx
mov esi, edx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edi, edi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x4e9631
js 0x4e969d
movzx eax, byte [0x5dd938]
mov ecx, edi
mov edx, 1
call fcn.00421010
test eax, eax
jne 0x4e9636
mov ecx, 1
mov edx, edi
call fcn.00536ff0
mov eax, 1
push edi
push esi
mov dword [ebp - 0x20], eax
push eax
call fcn.005282a0
add esp, 0xc
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x28]
jne 0x4e9667
lea ecx, [ebx + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], ebx
call fcn.004e96d0
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov esi, dword [ebp - 0x20]
lea ecx, [edx + edx*4]
inc edx
mov dword [eax + ecx*4], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edi
mov byte [eax + ecx*4 + 0x10], 0
mov dword [ebx + 0x30], edx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004211c0
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp + 8], 0
je 0x4e96ca
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.00421070
add esp, 0xc
pop ebp
ret

Function at 0x4e9870
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x5dc0bc]
test eax, eax
je 0x4e9955
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4e98a1
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x4e994a
mov eax, dword [0x5dc0bc]
test eax, eax
je 0x4e9964
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4e9927
mov esi, eax
test eax, eax
jne 0x4e9907
movzx eax, byte [0x5dd938]
mov ecx, 0x20
mov edx, 8
call fcn.00421010
test eax, eax
je 0x4e997f
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x5dc0bc
mov esi, eax
mov eax, dword [0x5dc0bc]
test eax, eax
je 0x4e9973
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x4e992b
movaps xmm0, xmmword [esp]
jmp 0x4e9939
xor esi, esi
jmp 0x4e994d
lea ecx, [esp + 0x10]
call fcn.004e4090
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x5dc0bc
call fcn.00539a20
jmp 0x4e9888
mov ecx, 0x5dc0bc
call fcn.00539a20
jmp 0x4e98af
mov ecx, 0x5dc0bc
call fcn.00539a20
jmp 0x4e98ff
mov ecx, 8
mov edx, 0x20
call fcn.00536ff0
int3
Function at 0x4f2adf
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x4f2ae1
test al, 1
je 0x4f2af8
test al, 2
jne 0x4f2b0a
xor eax, 3
ret
push 0x23
pop edx
mov ecx, str.assertion_failed:_prev.is_running__
push 0x5935ec
call fcn.005373b0
push 0x25
pop edx
mov ecx, 0x5935fc
push 0x593624
call fcn.005373b0
Function at 0x4f3a55
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x18]
mov edi, edx
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x2c]
mov dword [ecx - 4], esp
or dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x506be0
mov dword [ebp - 0x40], edi
mov edx, dword fs:[0]
mov dword [ecx], edx
mov dword fs:[0], ecx
xor edx, edx
lea ecx, [edi + 0xc]
cmp dword [edi + 0xc], 0xffffffff
cmove ecx, edx
mov edx, 0x7fffffff
cmp eax, edx
mov dword [ebp - 0x44], ecx
cmovb edx, eax
mov dword [ebp - 0x50], edx
mov edx, dword [edi + 8]
mov ecx, esi
push dword [ebp + 8]
call fcn.004f372f
pop eax
mov edx, dword [ebp - 0x2c]
cmp edx, 2
je 0x4f3bf9
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
test edx, edx
jne 0x4f3c01
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov edx, 0x591d34
mov dword [ebp - 0x54], eax
mov ecx, esi
call fcn.00452adc
push 0
push dword [ebp - 0x50]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x4f3b07
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x34], 4
jmp 0x4f3baf
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
and word [ebp - 0x33], 0
mov byte [ebp - 0x31], al
mov dword [ebp - 0x30], esi
call fcn.0043dba8
cmp al, 0xd
jne 0x4f3baf
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4f3ba4
mov eax, dword [ecx + 4]
mov dword [ebp - 0x38], esi
mov edx, dword [ecx]
lock inc dword [eax]
jle 0x4f3c2c
mov edi, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
add edx, 8
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x2c]
push edi
push esi
push eax
call fcn.00468ed8
add esp, 0xc
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], eax
push 4
pop ecx
call fcn.004cd11b
cmp byte [ebp - 0x2c], 4
mov edi, dword [ebp - 0x40]
je 0x4f3baf
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
cmp bl, 4
je 0x4f3baf
mov esi, dword [ebp - 0x28]
or dword [ebp - 0x10], 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
call fcn.004cd11b
jmp 0x4f3bc0
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 4
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
cmp bl, 4
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], ebx
je 0x4f3c0b
lea ecx, [ebp - 0x4c]
call fcn.004eb880
cmp al, 0xd
jne 0x4f3c13
mov ecx, edi
lea edx, [ebp - 0x58]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 2
call fcn.004f341f
or dword [ebp - 0x10], 0xffffffff
lea esi, [ebp - 0x2c]
push esi
call fcn.004e9f96
pop eax
mov edi, dword [ebp - 0x40]
jmp 0x4f3aa9
mov eax, dword [ebp - 0x20]
mov byte [eax], 5
jmp 0x4f3c1b
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x4f3c1b
mov eax, dword [ebp - 0x20]
mov byte [eax], 4
jmp 0x4f3c18
mov eax, dword [ebp - 0x20]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x507098
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x1c]
and esi, 0x1f
push edi
mov edi, dword [esp + 0x1c]
cmp esi, 8
jb 0x50712c
mov eax, esi
shr eax, 3
mov dword [esp + 0x20], eax
cmp dword [esp + 0x24], 1
jne 0x5070de
push 8
lea eax, [esp + 0x18]
push edi
push eax
call fcn.005282a0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x18]
jmp 0x5070e3
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push ecx
push eax
push 0
push 0
call fcn.00507264
push 0x1b
xor edx, ebx
xor eax, ebp
push edx
push eax
add edi, 8
call fcn.0052bedc
add esp, 0x1c
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.00527930
mov ebp, eax
mov ebx, edx
add ebp, 0xc2b2ae63
adc ebx, 0x85ebca77
sub esi, 8
sub dword [esp + 0x20], 1
jne 0x5070bd
cmp esi, 4
jb 0x50719f
cmp dword [esp + 0x24], 1
jne 0x50714e
push 4
lea eax, [esp + 0x24]
push edi
push eax
call fcn.005282a0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x507150
mov ecx, dword [edi]
mov eax, 0x9e3779b1
mov dword [esp + 0x20], ecx
mul ecx
push 0x17
mov ecx, eax
add edi, 4
mov eax, 0x85ebca87
mul dword [esp + 0x24]
add ecx, edx
xor eax, ebp
xor ecx, ebx
push ecx
push eax
call fcn.0052bedc
add esp, 0xc
push 0xc2b2ae3d
push 0x27d4eb4f
push edx
push eax
call fcn.00527930
mov ebp, eax
mov ebx, edx
add ebp, 0x9e3779f9
adc ebx, 0x165667b1
sub esi, 4
test esi, esi
je 0x5071e3
movzx eax, byte [edi]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.00527930
xor ebx, edx
xor ebp, eax
push 0xb
push ebx
push ebp
inc edi
call fcn.0052bedc
add esp, 0xc
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.00527930
mov ebp, eax
mov ebx, edx
sub esi, 1
jne 0x5071a3
push 0xc2b2ae3d
xor ecx, ecx
mov esi, ebx
push 0x27d4eb4f
xor ecx, ebx
shr esi, 1
push ecx
xor esi, ebp
push esi
call fcn.00527930
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.00527930
xor esi, esi
mov ecx, edx
pop edi
xor edx, esi
xor eax, ecx
pop esi
pop ebp
pop ebx
ret
Function at 0x515110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
mov eax, dword [0x5dcf00]
xor eax, esp
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
push ebx
mov ebx, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x80]
add ecx, ebp
push esi
push edi
mov edi, dword [esp + 0x98]
lea esi, [edx + ebx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], ebx
mov ebx, ebp
mov dword [esp + 0x38], ebp
push edx
lea ebp, [eax + edi]
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
lea esi, [eax + 0x1004]
mov dword [esp + 0x30], esi
lea edx, [eax + 0x1004]
mov esi, dword [eax + 0x2810]
lea ecx, [eax + 0x1808]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x18]
push esi
push edx
push ecx
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x44], ecx
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.005155de
add esp, 0x20
cmp eax, 0xffffff88
ja 0x5152f6
push 0xc
add esi, eax
lea eax, [esp + 0x74]
push 0
push eax
call fcn.00528820
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x34]
sub eax, esi
mov dword [esp + 0x70], 1
push eax
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.005144b2
add esp, 0x18
cmp eax, 0xfffffff8
ja 0x5152f3
mov eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00514484
push dword [esp + 0x38]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00514484
push dword [esp + 0x48]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00514484
lea eax, [esp + 0x60]
push eax
call fcn.00514851
mov edx, dword [esp + 0x3c]
add esp, 0x28
cmp eax, 2
ja 0x5152b4
test edx, edx
jle 0x5152b0
lea eax, [esp + 0x3c]
dec edx
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x14], edx
push eax
call fcn.00514f2a
pop ecx
pop ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push dword [esp + 0x38]
lea esi, [esp + 0x78]
push ebp
push eax
sub esp, 0xc
mov edi, esp
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00515309
add esp, 0x20
cmp eax, 0xffffff88
ja 0x5152f6
add ebx, eax
lea eax, [esp + 0x3c]
push eax
call fcn.00514851
mov edx, dword [esp + 0x14]
pop ecx
cmp eax, 2
jbe 0x515258
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
call fcn.0050a6f5
pop ecx
test eax, eax
je 0x5152f3
test edx, edx
js 0x5152f3
sub ebp, edi
lea esi, [ebx + ebp]
cmp esi, dword [esp + 0x1c]
jbe 0x5152d6
push 0xffffffffffffffba
jmp 0x5152f5
test ebp, ebp
je 0x5152eb
cmp ebx, edi
je 0x5152e9
push ebp
push edi
push ebx
call fcn.005282a0
add esp, 0xc
mov ebx, esi
sub ebx, dword [esp + 0x38]
mov eax, ebx
jmp 0x5152f6
push 0xffffffffffffffec
pop eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00527919
add esp, 0x70
ret
Function at 0x51987d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [0x5dcf00]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x80]
mov ebx, edi
add eax, edi
mov dword [esp + 0x30], edi
mov edi, dword [ebp + 0x2820]
lea edx, [ecx + esi]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x2824]
add eax, edi
mov dword [esp + 0x28], edx
push ecx
mov dword [esp + 0x1c], eax
lea edx, [ebp + 0x1004]
mov eax, dword [ebp + 0x2810]
push esi
mov dword [esp + 0x34], eax
lea eax, [ebp + 0x1808]
push edx
push eax
push ebp
lea eax, [esp + 0x38]
mov dword [esp + 0x24], edi
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00518352
add esp, 0x20
cmp eax, 0xffffff88
ja 0x519a4d
push 0xc
add esi, eax
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.00528820
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
push 4
pop eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x34]
sub eax, esi
push eax
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00515c38
add esp, 0x18
cmp eax, 0xffffff88
ja 0x519a4a
push ebp
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0051630e
lea eax, [ebp + 0x1004]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.0051630e
lea eax, [ebp + 0x1808]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.0051630e
lea eax, [esp + 0x58]
push eax
call fcn.00514851
mov ebp, dword [esp + 0x3c]
add esp, 0x28
cmp eax, 2
jg 0x519a01
test ebp, ebp
jle 0x5199fd
lea eax, [esp + 0x34]
dec ebp
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00519512
pop ecx
pop ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
push dword [esp + 0x30]
lea esi, [esp + 0x70]
push dword [esp + 0x20]
push eax
sub esp, 0xc
mov edi, esp
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00519a60
add esp, 0x20
cmp eax, 0xffffff88
ja 0x519a4d
add ebx, eax
lea eax, [esp + 0x34]
push eax
call fcn.00514851
pop ecx
cmp eax, 2
jle 0x5199aa
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
call fcn.0050a6f5
pop ecx
test eax, eax
je 0x519a4a
test ebp, ebp
js 0x519a4a
mov eax, dword [esp + 0x18]
sub eax, edi
cmp edi, dword [esp + 0x18]
ja 0x519a4a
lea esi, [eax + ebx]
cmp esi, dword [esp + 0x1c]
jbe 0x519a2d
push 0xffffffffffffffba
jmp 0x519a4c
test eax, eax
je 0x519a42
cmp ebx, edi
je 0x519a40
push eax
push edi
push ebx
call fcn.005282a0
add esp, 0xc
mov ebx, esi
sub ebx, dword [esp + 0x30]
mov eax, ebx
jmp 0x519a4d
push 0xffffffffffffffec
pop eax
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00527919
add esp, 0x68
ret
Function at 0x527f60
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x527f9f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x527f9f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x527f9f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x527f9f
cmp dword [ecx + 0x74], 0xe
jbe 0x527f9f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x53055f
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 0x5305fc
push ebx
push esi
call fcn.00530528
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.005304bc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5305a9
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5305fb
push edi
push eax
call fcn.0052e6c7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5305c9
call fcn.0052e68d
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5305fa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005304bc
add esp, 0x20
test eax, eax
jne 0x5305e8
push edi
call fcn.0052e68d
jmp 0x5305f0
push ebx
call fcn.0052e68d
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 0x5318ab
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c1128
push 0x5c1120
push str.FlsAlloc
push 0x1f
call fcn.0053176a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5318df
push dword [ebp + 8]
mov ecx, esi
call dword [0x53b304]
call esi
jmp 0x5318e5
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x531929
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c1138
push 0x5c1130
push str.FlsGetValue
push 0x21
call fcn.0053176a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x531960
push dword [ebp + 8]
mov ecx, esi
call dword [0x53b304]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]

Function at 0x531968
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c1140
push 0x5c1138
push str.FlsSetValue
push 0x22
call fcn.0053176a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5319a2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x53b304]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsSetValue]
Function at 0x536a30
Capabilities:
Parse pe header

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