joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4512b0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], ecx
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x451468
cmp dword [ebp + 0xc], 0
je 0x451339
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x80000016
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x7a
jne 0x451339
push 0
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00452570
mov ecx, dword [ebp + 0xc]
call fcn.00424810
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0
push 0x80000016
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
je 0x451468
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x16
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x7a
jne 0x451468
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
ja 0x45139b
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00424640
jmp 0x4513ac
push 0
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00424e40
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x14], 8
jb 0x4513ca
mov dword [ebp - 0x24], 1
jmp 0x4513d1
mov dword [ebp - 0x24], 0
mov dl, byte [ebp - 0x24]
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4513ed
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x40], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 8
jb 0x45141e
mov dword [ebp - 0x2c], 1
jmp 0x451425
mov dword [ebp - 0x2c], 0
mov al, byte [ebp - 0x2c]
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
test ecx, ecx
je 0x451441
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0x16
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4518a0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x4519f5
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4519f5
xor ecx, ecx
je 0x451925
push 0
push 0x10000
push 0x451ae0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x451925
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a2044
push str._s:WinHttpSetStatusCallback___failed:_d
mov eax, dword [ebp - 0xc]
push eax
call fcn.00452540
add esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push 0x1f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
jne 0x451968
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a20c0
push str._s:WinHttpQueryOption___failed:_d
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00452540
add esp, 0x10
mov edx, dword [ebp - 4]
or edx, 0x100
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
or eax, 0x2000
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
or ecx, 0x1000
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x3300
mov dword [ebp - 4], edx
push 4
lea eax, [ebp - 4]
push eax
push 0x1f
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4519ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenRequest
push str._s:WinHttpSetOption___failed:_d
mov edx, dword [ebp - 0xc]
push edx
call fcn.00452540
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x4519f5
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x4519f5
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.004507b0
mov ecx, dword [ebp + 0x14]
add ecx, 4
mov dword [ebp + 0x14], ecx
jmp 0x4519d0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x20
Function at 0x451a00
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x451a29
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x451a71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a1d74
push str._s:WinHttpOpen___failed:_d
mov eax, dword [ebp - 4]
push eax
call fcn.00452540
add esp, 0x10
jmp 0x451aba
mov dword [ebp - 8], 0x2a0
mov ecx, dword [ebp - 8]
or ecx, 0x800
mov dword [ebp - 8], ecx
push 4
lea edx, [ebp - 8]
push edx
push 0x54
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x451aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenSession
push 0x4a1e08
mov edx, dword [ebp - 4]
push edx
call fcn.00452540
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x451acc
mov dword [ebp - 0xc], 1
jmp 0x451ad3
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x14

Function at 0x452460
Capabilities:
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x452530
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x452530
cmp dword [ebp - 0x10], 0
je 0x45251b
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x4524d3
mov dword [ebp - 0x14], 1
jmp 0x4524da
mov dword [ebp - 0x14], 0
mov cl, byte [ebp - 0x14]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x4524f6
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x452530
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x4794c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ce90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
and ecx, 1
je 0x47958e
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x479513
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov ecx, dword [edx]
add ecx, dword [eax]
mov dword [ebp - 0x18], ecx
jmp 0x479526
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx]
add ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x1000
jb 0x479577
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00424120
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0041dbcb
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov dword [edx], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov dword [ecx], 0
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov dword [edx], 0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x3c]
and edx, 0xfffffffe
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x3c], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0xd0e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd0e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd0e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0e06a
add dl, dl
jne 0xd0e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0e0dc
xor eax, eax
add dl, dl
jne 0xd0e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0e17d
add dl, dl
jne 0xd0e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd0e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd0e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd0e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd0e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd0e075
mov eax, 1
add dl, dl
jne 0xd0e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd0e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd0e0e1
sub eax, ebx
mov ebx, 1
jne 0xd0e128
mov ecx, 1
add dl, dl
jne 0xd0e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd0e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd0e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd0e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd0e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd0e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd0e136
cmp eax, 0x7d00
jae 0xd0e16d
cmp eax, 0x500
jb 0xd0e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd0e075
cmp eax, 0x7f
ja 0xd0e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd0e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd0e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd0e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405e3d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ac4], 0
push esi
jne 0x405e74
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405e4e
mov dword [ecx*4 + 0x422ac0], eax
inc ecx
cmp ecx, 0x100
jl 0x405e49
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405ea5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ac0]
xor eax, esi
inc ecx
dec edx
jne 0x405e87
pop edi
not eax
pop esi
ret 0xc

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x35d90440
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x463b1548
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401c90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x20c], 0x104
mov ecx, dword [ebp - 0x20c]
mov eax, esp
lea edx, [ebp - 0x208]
mov dword [eax + 4], edx
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathW]
call eax
sub esp, 8
mov dword [ebp - 0x218], eax
jmp 0x401cda
mov eax, dword [ebp - 0x218]
cmp eax, 0
je 0x401d59
mov ecx, dword [ebp - 0x220]
mov eax, esp
lea edx, [ebp - 0x208]
mov dword [eax], edx
mov dword [eax + 4], 0
call fcn.00401da0
sub esp, 8
jmp 0x401d0d
jmp 0x401d7b
jmp 0x401d79
ud2
mov eax, dword [ebp - 0x21c]
add esp, 0x228
pop ebp
ret

Function at 0x4022e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x3c
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x40]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
sub esp, 8
cmp eax, 0
jne 0x40232e
mov ecx, dword [ebp - 0x48]
lea eax, [0x4380e4]
mov dword [esp], eax
call fcn.004015c0
sub esp, 4
jmp 0x40233f
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004015c0
sub esp, 4
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop ebp
ret
Function at 0x402b70
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x19]
call fcn.00402cc0
mov ecx, eax
call fcn.00402da0
mov ecx, eax
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], ecx
call fcn.004013c0
sub esp, 4
mov ecx, dword [ebp - 0x44]
mov eax, esp
mov dword [eax + 4], ecx
lea ecx, [ebp - 0xc]
mov dword [eax], ecx
call fcn.00401420
jmp 0x402bb3
lea ecx, [ebp - 0x18]
call fcn.0040a810
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0xc]
call fcn.00402dc0
sub esp, 4
jmp 0x402bd2
lea ecx, [ebp - 0x3d]
call fcn.00402df0
mov dword [ebp - 0x48], eax
jmp 0x402be2
mov ecx, dword [ebp - 0x48]
call fcn.00402e90
mov dword [ebp - 0x4c], eax
jmp 0x402bf2
mov ecx, dword [ebp - 0x4c]
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x3c]
call fcn.004013c0
sub esp, 4
jmp 0x402c09
mov eax, esp
lea ecx, [ebp - 0x3c]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x30]
mov dword [eax], ecx
call fcn.00401420
jmp 0x402c20
mov eax, esp
lea ecx, [ebp - 0x30]
mov dword [eax], ecx
lea ecx, [ebp - 0xc]
call fcn.00402dc0
sub esp, 4
jmp 0x402c37
lea ecx, [ebp - 0x30]
call fcn.0040ae90
lea ecx, [ebp - 0x3c]
call fcn.0040a810
lea ecx, [ebp - 0xc]
call fcn.004013a0
mov ecx, eax
mov eax, esp
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__wsystem]
call eax
jmp 0x402c61
lea ecx, [ebp - 0xc]
call fcn.0040ae90
add esp, 0x54
pop ebp
ret
Function at 0x40c110
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x40c1a0
push edi
push esi
mov esi, 1
cmp byte [0x4402b4], 1
jne 0x40c216
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c1bf
cmp eax, 0x4402b8
jne 0x40c21b
push dword [0x44000c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test eax, eax
jne 0x40c1f0
push 4
push 1
call sub.msvcrt.dll_calloc
add esp, 8
test eax, eax
je 0x40c216
mov edi, eax
push eax
push dword [0x44000c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0xc
push 1
call sub.msvcrt.dll_calloc
add esp, 8
test eax, eax
je 0x40c216
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [edi]
mov dword [eax + 8], ecx
mov dword [edi], eax
xor esi, esi
mov eax, esi
pop esi
pop edi
ret
push 0x46
push str..._crt_tls_atexit.c
push str._dso__dso____dso_handle
call sub.msvcrt.dll__assert
nop dword [eax]

Function at 0x40d0c0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
call fcn.00413090
test al, al
je 0x40d107
mov esi, dword [fcn.00412b80]
push 2
call esi
add esp, 4
push ebp
push ebx
push edi
push str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0x__n
push eax
call fcn.0040c7c0
add esp, 0x14
push 2
call esi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00413180
Function at 0x412a00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x412a11
jmp dword [eax*4 + 0x439c38]
cmp dword [0x4402dc], 0
je 0x412b20
push 0x4402e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4402f8]
test edi, edi
je 0x412b15
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412a5b
mov edi, dword [edi + 8]
test edi, edi
je 0x412b15
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x412a50
test esi, esi
je 0x412a50
mov ecx, dword [edi + 4]
call dword [0x43eb84]
push esi
call ecx
add esp, 4
jmp 0x412a50
call fcn.0040bbb0
jmp case.default.0x412a11
cmp dword [0x4402dc], 0
je case.default.0x412a11
push 0x4402e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4402f8]
test edi, edi
je 0x412b08
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412ac7
mov edi, dword [edi + 8]
test edi, edi
je 0x412b08
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x412ac0
test esi, esi
je 0x412ac0
mov ecx, dword [edi + 4]
call dword [0x43eb84]
push esi
call ecx
add esp, 4
jmp 0x412ac0
cmp dword [0x4402dc], 0
jne 0x412afc
push 0x4402e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4402dc], 1
jmp case.default.0x412a11
push 0x4402e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x412a11
push 0x4402e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4402dc]
cmp eax, 1
jne case.default.0x412a11
mov eax, dword [0x4402f8]
test eax, eax
je 0x412b52
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call fcn.00436efc
add esp, 4
mov eax, esi
test esi, esi
jne 0x412b40
mov dword [0x4402f8], 0
mov dword [0x4402dc], 0
push 0x4402e0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x412ca0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x438004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x412d06
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x412d06
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x412d06
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x412d06
mov edx, dword [esp + 0xc]
sub edx, dword [0x438004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x412cf6
add esi, 0x28
dec ecx
je 0x412d06
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x412cf0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x412cf0
mov eax, esi
pop esi
pop edi
ret
Function at 0x412fd0
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x4412a3], 1
jne 0x412fef
cmp byte [0x4412a2], 0
jne 0x41300e
jmp 0x41303b
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4412a3], 1
test eax, eax
setne byte [0x4412a2]
je 0x41303b
mov ebx, dword [fcn.00412b80]
push 2
call ebx
add esp, 4
push edi
push esi
push str.libunwind:___unw_init_local_cursor_p__context_p__n
push eax
call fcn.0040d3a0
add esp, 0x10
push 2
call ebx
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov dword [esi], 0x439e24
mov dword [esi + 4], 0x441298
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [esi + 8], xmm0
movups xmmword [esi + 0x18], xmm1
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x28], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0x38], xmm0
xorps xmm0, xmm0
movups xmmword [esi + 0x48], xmm0
movups xmmword [esi + 0x58], xmm0
movups xmmword [esi + 0x62], xmm0
mov ecx, esi
push 0
call fcn.00413d10
xor eax, eax
pop esi
pop edi
pop ebx
ret

Function at 0x413090
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x4412a3], 1
jne 0x4130a4
cmp byte [0x4412a2], 0
setne al
ret
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x4412a2]
mov byte [0x4412a3], 1
ret

Function at 0x4130d0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x4412a3], 1
jne 0x4130f4
cmp byte [0x4412a2], 0
jne 0x413113
jmp 0x413141
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4412a3], 1
test eax, eax
setne byte [0x4412a2]
je 0x413141
mov edi, dword [fcn.00412b80]
push 2
call edi
add esp, 4
push ebx
push ebp
push esi
push str.libunwind:___unw_get_reg_cursor_p__regNum_d__value_p__n
push eax
call fcn.0040d3a0
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x43eb84]
mov ecx, esi
push ebp
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x413174
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x43eb84]
mov ecx, esi
push ebp
call edi
mov dword [ebx], eax
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret