joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a872c57
Capabilities:
Encode data using base64

Disassembly:
push 0x18
mov eax, 0x2a983df4
call fcn.2a84a756
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], esi
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x14], edi
jb 0x2a872c7f
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x10], eax
mov byte [esi], cl
push ecx
shl eax, 2
push 3
mov dword [ebp - 4], ecx
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x18], 1
add eax, ecx
mov ecx, esi
push eax
call fcn.2a886a5c
mov ebx, dword [esi + 0x14]
mov ecx, esi
cmp ebx, 0x10
jb 0x2a872cbb
mov ecx, dword [esi]
xor edx, edx
cmp dword [ebp - 0x10], edx
jle 0x2a872d71
mov esi, dword [ebp - 0x14]
movzx eax, byte [esi + edx]
shr eax, 2
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
mov al, byte [eax + 0x2a98b938]
mov byte [ecx], al
inc ecx
mov bl, byte [esi + edx]
and bl, 3
shl bl, 4
inc edx
cmp edx, dword [ebp - 0x10]
jge 0x2a872cf9
mov al, byte [esi + edx]
shr al, 4
or bl, al
movzx eax, bl
mov ebx, dword [ebp - 0x10]
mov al, byte [eax + 0x2a98b938]
mov byte [ecx], al
cmp edx, ebx
jge 0x2a872d36
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x2a872d15
mov eax, dword [edi]
mov cl, byte [eax + edx]
and cl, 0xf
shl cl, 2
inc edx
cmp edx, ebx
jge 0x2a872d2b
mov al, byte [esi + edx]
shr al, 6
or cl, al
movzx eax, cl
mov al, byte [eax + 0x2a98b938]
jmp 0x2a872d38
mov al, 0x3d
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 2], al
mov ecx, dword [ebp - 0x1c]
add ecx, 4
cmp edx, ebx
jge 0x2a872d57
movzx eax, byte [esi + edx]
and eax, 0x3f
mov al, byte [eax + 0x2a98b938]
jmp 0x2a872d59
mov al, 0x3d
mov ebx, dword [ebp - 0x20]
inc edx
mov byte [ebx + 3], al
mov ebx, dword [ebp - 0x10]
cmp edx, ebx
jl 0x2a872cc9
mov esi, dword [ebp - 0x24]
mov ebx, dword [esi + 0x14]
mov eax, esi
cmp ebx, 0x10
jb 0x2a872d7a
mov eax, dword [esi]
sub ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.2a886a5c
mov eax, esi
call fcn.2a84a9ee
ret

Function at 0x2a875045
Capabilities:
Get hostname

Disassembly:
push 0x44c
mov eax, 0x2a984252
call fcn.2a8c96b3
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x410]
mov edi, 0x400
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x2a87509d
lea eax, [ebp - 0x44d]
mov ecx, esi
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.2a84e515
mov eax, esi
call fcn.2a8c9691
ret
push 0x93
lea ecx, [ebp - 0x458]
call fcn.2a886a5c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44c]
push ecx
mov ecx, eax
call fcn.2a86a7dd
push eax
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 1
call fcn.2a869d94
push 0x2a9f21f8
lea eax, [ebp - 0x434]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a886a5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x2a886a6b
pop dword [ebp - 4]
mov eax, 0x2a886a6b
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xd340affb
add dword [ebp - 0x14], 0x7b119550
mov dword [ebp - 0x10], 0xfac516ea
add dword [ebp - 0x10], 0x376e355b
mov dword [ebp - 0xc], 0x1b10722c
add dword [ebp - 0xc], 0x313bd202
mov dword [ebp - 8], 0x47149a12
add dword [ebp - 8], 0xb8eb65ee
lea eax, [ebp - 0x14]
push eax
mov eax, 0x1c9c8900
add eax, 0xdfbe850
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x3db211b4
add dword [ebp - 0x14], 0x36c057a2
mov dword [ebp - 0x10], 0xec57b866
add dword [ebp - 0x10], 0x5514a90f
mov dword [ebp - 0xc], 0xe8167b21
sub dword [ebp - 0xc], 0x84a70eb5
mov dword [ebp - 8], 0xadb137b0
add dword [ebp - 8], 0x524ec850
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x7af91d13
add eax, 0xaf9f5435
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x49203
push 0
call eax
mov ecx, 0x45d3
xor ebx, ebx
add ebx, eax
mov edx, 0xc12dbd82
add edx, 0x69749e7e
add edx, dword [ebp - 4]
mov edi, 0x84e2fcf2
add edi, 0x62c74820
mov esi, dword [edx]
xor esi, edi
mov dword [ebx], esi
add ebx, 4
add edx, 4
loop 0x2a886b84
add eax, 0x10a1f
xor ebx, ebx
add ebx, eax
add eax, 0xe81bd4f0
sub eax, 0xe81bd4eb
mov ecx, 0x9fcb2f51
sub ecx, 0x754b2f51
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x2a8bbca0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.2a8ca120
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x2a8bbd2a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x2a8bbd2e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3c8]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.2a893790
push eax
call fcn.2a8cccb0
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x2a8bbd37
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x2a8bbce2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x14], eax
test eax, eax
je 0x2a8bbdb4
mov eax, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr eax, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x10]
lea edi, [edi - 1]
mov edx, esi
mov ecx, ebp
sub edx, ebp
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc ebp
movzx ecx, byte [esp + 0x2c]
or dl, al
movzx eax, byte [edi + 1]
dec dl
movzx edx, dl
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
cmp ebp, dword [esp + 0x14]
jb 0x2a8bbd75
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov eax, ecx
pop ebx
mov dword [edi + 8], esi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret

Function at 0x2a8c94f1
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x2a9867e9
call fcn.2a84a756
mov edi, ecx
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x10
mov dword [ebp - 0x54], esi
call fcn.2a886a5c
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x2a8c9536
push 0x10
push ebx
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x2a8c9538
mov esi, ebx
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [edi + 0x24], esi
call fcn.2a8c88a9
push dword [edi + 0x24]
lea ecx, [ebp - 0x54]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
call fcn.2a84a9ee
ret
Function at 0x2a8e8ad0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.2a886a5c
push 0x62
push esi
mov edi, eax
mov ebx, 1
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x2a8e8b75
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 1
push 2
call fcn.2a8cf650
push 0x2a9905c4
push esi
push 0x2a9b2914
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.2a8ced60
add esp, 0x2c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x2a8e8b52
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 6
je 0x2a8e8b52
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x2a8e8b5c
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.2a8cf650
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x2a9b28bc
call fcn.2a8cd060
mov esi, eax
add esp, 4
test esi, esi
jne 0x2a8e8b97
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.2a8cca00
push edi
push ebx
push 0x6a
push esi
call fcn.2a8cca30
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x406802
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x406811
pop dword [ebp - 0x28]
mov eax, 0x406811
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xeb6d8808
add dword [ebp - 0x38], 0x62e4bd43
mov dword [ebp - 0x34], 0xc521dc8b
add dword [ebp - 0x34], 0x6d116fba
mov dword [ebp - 0x30], 0x3f953ce9
sub dword [ebp - 0x30], 0xf348f8bb
mov dword [ebp - 0x2c], 0x5286b39
sub dword [ebp - 0x2c], 0x5286b39
lea eax, [ebp - 0x38]
push eax
mov eax, 0x4621c0dd
add eax, 0xba1f201f
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xb3a86baa
add dword [ebp - 0x38], 0xc0c9fdac
mov dword [ebp - 0x34], 0x8fd9f7d
add dword [ebp - 0x34], 0x386ec1f8
mov dword [ebp - 0x30], 0x9ff32f53
add dword [ebp - 0x30], 0xc37c3d19
mov dword [ebp - 0x2c], 0xfab1687d
sub dword [ebp - 0x2c], 0xfab1687d
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x700ba002
add eax, 0x90354086
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x34942
push 0
call eax
mov ecx, 0x3b81
xor edx, edx
add edx, eax
mov ebx, 0x41f000
add ebx, dword [ebp - 0x28]
mov edi, 0x9630b848
sub edi, 0x8dee8537
xor dword [ebp - 0x20], ecx
mov esi, dword [ebx]
add dword [ebp - 0x20], edx
xor esi, edi
add dword [ebp - 8], 0x7ec3d989
mov dword [edx], esi
mov dword [ebp - 0x10], 0xd2c033f7
add edx, 4
add ebx, 4
loop 0x406924
add eax, 0xe0d7
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x406b16
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40d6f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a174]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x110]
lea eax, [ebp]
mov edi, dword [ebp + 0x114]
mov ebx, 0x104
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x406bb4
cmp eax, ebx
jae 0x406bb4
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004060ea
pop ecx
pop ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
jmp 0x406ba7
push esi
lea ecx, [edi + 0x18]
call fcn.00403db8
add esi, 0x18
cmp esi, dword [ebp - 0x14]
jne 0x406b9b
lea ecx, [ebp - 0x18]
call fcn.0040422a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040baa8
add ebp, 0x108
leave
ret
Function at 0x4049c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
test esi, esi
jne 0x4049cf
xor eax, eax
pop esi
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
or eax, 0xffffffff
test edi, edi
je 0x404a12
nop word [eax + eax]
mov cl, byte [esi]
lea esi, [esi + 1]
movzx edx, cl
mov ecx, edx
shr edx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
xor eax, dword [ecx*4 + 0x45b718]
mov ecx, eax
shr eax, 4
and ecx, 0xf
xor edx, ecx
xor eax, dword [edx*4 + 0x45b718]
sub edi, 1
jne 0x4049e0
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x406b60
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x462080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
test ecx, ecx
je 0x406ceb
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x406ceb
cmp esi, dword [ecx + 0x10]
jae 0x406ceb
cmp dword [ecx + 0x14], 1
jne 0x406ceb
mov eax, dword [edx + 0x10]
mov edi, dword [eax + esi*4]
add edi, dword [edx]
je 0x406ceb
test ebx, ebx
je 0x406ceb
mov dword [ebx], esi
xorps xmm0, xmm0
mov eax, dword [ecx + 0x38]
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0xffffffff
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*4]
mov dword [ebx + 4], eax
movzx eax, word [edi + 4]
mov word [ebx + 8], ax
movzx eax, word [edi + 6]
mov word [ebx + 0xa], ax
movzx eax, word [edi + 8]
mov word [ebx + 0xc], ax
movzx eax, word [edi + 0xa]
mov word [ebx + 0xe], ax
movzx ecx, word [edi + 0xe]
movzx edx, word [edi + 0xc]
mov eax, ecx
shr eax, 9
add eax, 0x50
mov dword [ebp - 0x14], eax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov dword [ebp - 0x1c], ecx
dec eax
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, 0xb
mov dword [ebp - 0x20], eax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], edx
call fcn.00430d2e
mov dword [ebx + 0x10], eax
mov esi, 0x103
mov dword [ebx + 0x14], edx
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0
movzx eax, word [edi + 0x24]
mov word [ebx + 0x30], ax
mov eax, dword [edi + 0x26]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x2a]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
movzx eax, word [edi + 0x1c]
cmp eax, esi
cmovb esi, eax
lea eax, [edi + 0x2e]
push esi
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.0042c4c0
mov byte [ebx + esi + 0x44], 0
mov esi, 0xff
movzx eax, word [edi + 0x20]
cmp eax, esi
cmovb esi, eax
mov dword [ebx + 0x40], esi
movzx ecx, word [edi + 0x1e]
movzx eax, word [edi + 0x1c]
add ecx, edi
add eax, 0x2e
push esi
add eax, ecx
push eax
lea eax, [ebx + 0x148]
push eax
call fcn.0042c4c0
add esp, 0x1c
mov byte [ebx + esi + 0x148], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aee2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042aee2
mov esp, ebp
pop ebp
ret
Function at 0x40b990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x40b9c2
jl 0x40b9b5
test ecx, ecx
jne 0x40b9c2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40ba82
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0040e430
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40ba2e
jg 0x40b9ed
test esi, esi
je 0x40ba2e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x40ba05
mov eax, dword [esp + 0x10]
jl 0x40b9ff
cmp eax, esi
jae 0x40ba05
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0042c4c0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40ba4f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40ba6b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x40b9d4
jl 0x40ba6b
test ecx, ecx
jne 0x40b9d4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40bac6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40bac6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0042c4c0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40bb37
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40baec
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x40bb22
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00434602
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40bb37
cmp edi, eax
ja 0x40bb00
test edi, edi
je 0x40bb37
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00434602
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ed80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f920
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x462080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0042aef0
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00415ae8
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0040ed20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450120
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x462080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00404760
push 8
call fcn.0042aef0
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 1
call fcn.00415ae8
add esp, 8
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 0
mov dword [edi + 0x30], esi
push 0x20
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
call fcn.0040f2d0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x40f105
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00404760
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42a9d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00438ebe
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42aa17
sub eax, 1
je 0x42aa12
sub eax, 1
je 0x42aa0e
xor eax, eax
leave
ret
push 3
jmp 0x42aa19
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x42bbff
Capabilities:
Parse pe header

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

Function at 0x4341ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042be10
mov eax, dword [0x462080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0043f01b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43422e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43438a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044f130
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x464950]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00443dce
mov ecx, dword [esi*4 + 0x464950]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x434383
cmp eax, dword [ecx + edi + 0x24]
jne 0x434383
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x434383
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00443dce
add esp, 0x14
test edx, edx
jl 0x434383
jg 0x4342f9
test eax, eax
jb 0x434383
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x434383
jl 0x434313
cmp dword [ebp - 0x1008], eax
ja 0x434383
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x434331
test ebx, ebx
je 0x43436a
cmp ecx, edi
jae 0x43436a
mov al, byte [ecx]
cmp al, 0xd
jne 0x43434b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x434357
cmp byte [ecx + 1], 0xa
jne 0x434357
inc ecx
jmp 0x434357
movzx eax, al
movsx eax, byte [eax + 0x4624d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x434331
cmp edx, ebx
jne 0x434331
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x434388
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042aee2
leave
ret

Function at 0x43fb36
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x456e00
push 0x456df8
push str.FlsAlloc
push 0x1f
call fcn.0043f9a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43fb6a
push dword [ebp + 8]
mov ecx, esi
call dword [0x452170]
call esi
jmp 0x43fb70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x43fbb4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x456e10
push 0x456e08
push str.FlsGetValue
push 0x21
call fcn.0043f9a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43fbeb
push dword [ebp + 8]
mov ecx, esi
call dword [0x452170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43fbf3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x456e18
push 0x456e10
push str.FlsSetValue
push 0x22
call fcn.0043f9a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43fc2d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x452170]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]