joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60fb10
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x60fb24
mov dword [esp + 0x18], fcn.0060e2f0
jmp fcn.00606760
mov dword [esp + 0x18], fcn.0060d590
jmp fcn.006064a0

Function at 0x615dd0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.0057c100
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.005d62b0
mov ebx, eax
push ebx
push esi
call fcn.005d6190
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x615e59
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x615e33
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.005d6200
push esi
call fcn.005d6350
mov edi, eax
add esp, 0x10
test edi, edi
je 0x615e59
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.005d62b0
mov ebx, eax
push ebx
push esi
call fcn.005d6190
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x615ec8
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x615eae
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.005d6200
push esi
call fcn.005d6350
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x615e51
push esi
call fcn.005d6350
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x666650
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.0057c100
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push 0x1048
push 0x76ffd0
push esi
call fcn.006954c0
mov ebx, dword [esp + 0x30]
mov edi, 0x48
add esp, 0xc
mov eax, ebx
cmp dword [esp + 0x20], edi
cmovle edi, dword [esp + 0x20]
add edi, ebx
xor ebp, ebp
nop dword [eax]
movzx edx, byte [eax]
inc eax
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
xor dword [esi + ebp*4], edx
inc ebp
cmp ebp, 0x12
jl 0x666690
mov dword [esp + 0x10], 0
xor edi, edi
mov dword [esp + 0x14], 0
nop
lea eax, [esp + 0x10]
push esi
push eax
call fcn.006670b0
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esi + edi*4], eax
mov eax, dword [esp + 0x14]
mov dword [esi + edi*4 + 4], eax
add edi, 2
cmp edi, 0x12
jl 0x6666e0
xor edi, edi
lea eax, [esp + 0x10]
push esi
push eax
call fcn.006670b0
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esi + edi*4 + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [esi + edi*4 + 0x4c], eax
add edi, 2
cmp edi, 0x400
jl 0x666707
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x6676a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x2c
call fcn.0057c100
mov eax, dword [0x7bee5c]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x54]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x1c], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x14], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x14]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x14], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x667865
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x40]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x48], eax
test esi, esi
jne 0x6677f5
push dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
call fcn.006670b0
mov ebx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x667790
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x66784c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0057b43c
add esp, 0x2c
ret
mov ecx, dword [esp + 0x38]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0057b43c
add esp, 0x2c
ret
Function at 0x6b1aa4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006b1923

Function at 0x6b7297
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006b6f57

Function at 0x6bef37
Capabilities:
Create thread

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

Disassembly:
mov ecx, 0x10035111
call fcn.10010b61
xor eax, eax
push eax
push eax
push eax
push 0x1000137d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x10001519
Capabilities:
Create thread
Terminate process

Disassembly:
push esi
mov ecx, 0x10035111
call fcn.10010b61
cmp dword [0x10033360], 2
jne 0x10001551
xor esi, esi
push esi
push esi
push esi
push 0x10001555
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
jmp 0x1000154b

Function at 0x10001759
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, 0x10035111
call fcn.10010b61
push dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x100017a2
cmp dword [0x10033360], 2
push esi
jne 0x1000179c
push esi
push esi
push 0x10001578
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, 1
pop esi
pop ebp
ret

Function at 0x100017c3
Capabilities:
Create thread

Disassembly:
mov ecx, 0x10035111
call fcn.10010b61
xor eax, eax
push eax
push eax
push eax
push 0x100017a7
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x1000852f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10031180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x18], eax
jmp 0x1000855a
mov ebx, dword [ebp - 0x18]
mov eax, 0x20d
cmp word [ebx + 4], ax
jne 0x100085ee
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
mov eax, 0x6f0ab0
mov edx, dword ds:[eax]
mov ecx, edx
mov eax, dword [0x10031004]
call eax
mov dword [0x10033308], eax
lea esi, [ebx + 0x28]
mov dword [ebx + 0x5c], 0x46c8
push 0x34
push 0
push esi
call fcn.10011990
movzx eax, byte [ebp - 5]
push eax
movzx eax, byte [ebp - 6]
push eax
movzx eax, byte [ebp - 7]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
push 0x12
push esi
call fcn.100086a0
add esp, 0x30
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100085d1
sub esi, ecx
cmp esi, 0xc
jge 0x100085e7
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, ebx
call fcn.1000860f
jmp 0x10008600
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10010b93
leave
ret
Function at 0x100089a1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x10035ec1
call fcn.10010b61
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100089df
mov al, byte [ebp + 0xc]
mov byte [esi], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
leave
ret 8

Function at 0x100089e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x10035ec1
call fcn.10010b61
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10008a22
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
leave
ret 8

Function at 0x10008a27
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x10035ec1
call fcn.10010b61
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0x40
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10008a67
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
leave
ret 0xc

Function at 0x10008ed5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, 0x10035ec1
call fcn.10010b61
mov esi, dword [ebp + 0x10]
lea edi, [esi + 4]
push edi
mov dword [ebp + 0x10], edi
call fcn.10016440
push 0
mov ebx, eax
call fcn.100165ef
push eax
call fcn.10016983
push esi
push dword [ebp + 0xc]
push ebx
call fcn.10011be0
mov eax, dword [ebp + 0x14]
add esp, 0x18
sub eax, edi
mov edi, dword [ebp + 8]
sub eax, edi
mov dword [ebx + esi], eax
lea eax, [ebp - 4]
push eax
push 0x40
lea eax, [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push edi
call esi
push dword [ebp + 0x10]
push ebx
push edi
call fcn.10011be0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10008f50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov ecx, 0x10035ec1
call fcn.10010b61
mov esi, dword [ebp + 0xc]
push esi
call fcn.10016440
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
je 0x10008f8f
push esi
push 0x90
push edi
call fcn.10011990
add esp, 0xc
push esi
push edi
push dword [ebp + 8]
call fcn.10011be0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
leave
ret
Function at 0x10009af4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ecx, 0x10035ec1
call fcn.10010b61
push dword [ebp + 8]
and dword [ebp - 0xc], 0
lea ecx, [ebp - 1]
call fcn.10008dbd
mov edi, dword [ebp + 0x14]
mov ebx, eax
add edi, ebx
mov dword [ebp - 8], ebx
push 0x10029498
push edi
call fcn.10010fd6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10009c22
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
sub ecx, ebx
mov ebx, dword [ebp + 0xc]
sub ecx, ebx
cmp eax, 1
je 0x10009b50
push 2
pop edx
cmp eax, edx
jne 0x10009b53
xor edx, edx
inc edx
dec eax
cmp eax, 0xd
ja case.default.0x10009b59
jmp dword [eax*4 + 0x10009c2c]
mov byte [esi], 0xe9
jmp case.default.0x10009b59
mov byte [esi], 0xe8
jmp case.default.0x10009b59
mov word [esi], 0x840f
jmp case.default.0x10009b59
mov word [esi], 0x850f
jmp case.default.0x10009b59
mov word [esi], 0x8c0f
jmp case.default.0x10009b59
mov word [esi], 0x8d0f
jmp case.default.0x10009b59
mov word [esi], 0x8e0f
jmp case.default.0x10009b59
mov word [esi], 0x8f0f
jmp case.default.0x10009b59
mov word [esi], 0x820f
jmp case.default.0x10009b59
mov word [esi], 0x830f
jmp case.default.0x10009b59
mov word [esi], 0x860f
jmp case.default.0x10009b59
mov word [esi], 0x870f
mov eax, dword [ebp + 0x14]
mov dword [edx + esi], ecx
test eax, eax
je 0x10009bcc
push eax
mov eax, dword [ebp - 8]
add eax, esi
push 0x90
push eax
call fcn.10011990
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
call edi
test eax, eax
je 0x10009c22
mov eax, dword [ebp - 8]
add eax, dword [ebp + 0x14]
push eax
push esi
push ebx
call fcn.10011be0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, dword [ebp + 0x14]
push eax
push ebx
call edi
test eax, eax
je 0x10009c22
mov eax, dword [ebp - 8]
add eax, dword [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
call fcn.10010c02
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000a647
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x10035ec1
call fcn.10010b61
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0x40
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000a697
test esi, esi
je 0x1000a686
push esi
push 0x90
push dword [ebp + 8]
call fcn.10011990
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
leave
ret 8

Function at 0x1000cce5
Capabilities:
Allocate or change rwx memory

Disassembly:
push 8
push 0x1002f6b0
call fcn.10010ff0
mov ecx, 0x10036205
call fcn.10010b61
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1000cda8
sub eax, 1
jne 0x1000cdbe
lea eax, [ebp + 0xc]
push eax
push 0x40
mov ebx, 0x1effff
push ebx
mov edi, 0x401000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.10001360
call fcn.100015bb
call fcn.100017c3
call fcn.10009c64
push 0x5d3418
push 0x5d33fd
call fcn.100090da
push 0x5d3434
push 0x5d3419
call fcn.100090da
push 0x5d344c
push 0x5d3435
call fcn.100090da
push 4
push 0x10005821
push 0x46b55f
call fcn.10009102
push 2
push 0x10005853
push 0x4b242e
call fcn.10009102
add esp, 0x30
call fcn.10008e05
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000cdbe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1000cdbe
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10016de6
Capabilities:
Parse pe header

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

Function at 0x1001a79b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002af90
push 0x1002af88
push str.FlsAlloc
push 0x1f
call fcn.1001a65a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a7cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x10025158]
call esi
jmp 0x1001a7d5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001a819
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002afa0
push 0x1002af98
push str.FlsGetValue
push 0x21
call fcn.1001a65a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a850
push dword [ebp + 8]
mov ecx, esi
call dword [0x10025158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001a858
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002afa8
push 0x1002afa0
push str.FlsSetValue
push 0x22
call fcn.1001a65a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a892
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10025158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001ca9b
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 0x1001cb38
push ebx
push esi
call fcn.1001ca64
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.1001c9f8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001cae5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001cb37
push edi
push eax
call fcn.10018468
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001cb05
call fcn.1001842e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001cb36
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001c9f8
add esp, 0x20
test eax, eax
jne 0x1001cb24
push edi
call fcn.1001842e
jmp 0x1001cb2c
push ebx
call fcn.1001842e
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 0x10024120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002414d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002414d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41c470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x404491
cmp byte [ebx + 0x49], 0
je 0x404491
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x404485
lea esi, [ebp - 0x2c]
call fcn.00403de0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x404373
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4043ac
dec eax
je 0x4043b0
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40448c
call fcn.00402c50
xor al, al
jmp 0x404493
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4043c0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4043ed
cmp edi, 0x10
jae 0x4043cf
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004075af
add esp, 0x10
cmp esi, eax
jne 0x40447d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x404489
test esi, esi
jne 0x404367
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4044ae
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4044ae
cmp edi, esi
jae 0x404466
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404b30
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x404367
mov ecx, eax
cmp edi, 0x10
jae 0x404442
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40445d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x404361
test esi, esi
jne 0x404438
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x404475
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x404361
lea ecx, [ebp - 0x2c]
call fcn.00402c50
xor al, al
jmp 0x404493
lea ecx, [ebp - 0x2c]
call fcn.00402c50
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406048
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00405ac0
int3
Function at 0x4048d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414d3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41c470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00405c14
push 4
mov dword [ebp - 4], 0
call fcn.0040775b
mov edi, eax
add esp, 4
test edi, edi
je 0x40494c
call fcn.00405a0f
mov dword [edi], eax
call fcn.004057ce
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00405bd5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404942
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00405bfd
jmp 0x40494e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406048
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c470]
jne 0x406052
repz ret
jmp fcn.00409a9b