joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40300f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp dword [ebp + 8], 0
je 0x40309b
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 1
jge 0x403048
lea eax, [ebp - 0x404]
push 0x40a018
push eax
call section..text
pop ecx
pop ecx
lea eax, [ebp - 0x404]
push eax
call fcn.00401118
lea eax, [ebp + eax - 0x405]
pop ecx
mov cl, byte [eax]
cmp cl, 0x2f
je 0x403068
cmp cl, 0x5c
jne 0x40306b
and byte [eax], 0
lea eax, [ebp - 0x404]
push eax
call fcn.0040315e
push dword [0x40a010]
lea eax, [ebp - 0x404]
push eax
call fcn.00401130
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call section..text
add esp, 0x14
leave
ret

Function at 0x40315e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.00403533
cmp al, 1
pop ecx
je 0x403201
push ebx
call fcn.00401118
cmp eax, 0x3f6
pop ecx
jg 0x403208
lea eax, [ebp - 0x400]
push ebx
push eax
call section..text
pop ecx
pop ecx
push 1
pop esi
lea eax, [ebp - 0x400]
push eax
call fcn.004030f1
test al, al
pop ecx
je 0x403208
lea eax, [ebp - 0x400]
push eax
call fcn.00403533
test al, al
pop ecx
jne 0x4031c1
inc esi
jmp 0x40319c
dec esi
test esi, esi
jl 0x403201
lea eax, [ebp - 0x400]
push ebx
push eax
call section..text
pop ecx
test esi, esi
pop ecx
jle 0x4031eb
mov edi, esi
lea eax, [ebp - 0x400]
push eax
call fcn.004030f1
dec edi
pop ecx
jne 0x4031db
lea eax, [ebp - 0x400]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x403208
dec esi
jns 0x4031c6
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
xor al, al
jmp 0x403203

Function at 0x40320c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
je 0x4032e1
cmp dword [ebp + 8], ebx
mov dword [eax], ebx
je 0x4032e1
push ebx
push dword [ebp + 8]
call fcn.0040347b
pop ecx
cmp edx, ebx
pop ecx
mov esi, eax
jg 0x4032e1
jl 0x403247
cmp esi, ebx
ja 0x403268
push dword [ebp + 8]
call fcn.00403533
test al, al
pop ecx
je 0x4032e1
push 0xa
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov byte [eax], bl
jmp 0x4032ef
cmp edx, ebx
jl 0x403276
jg 0x4032e1
cmp esi, 0x3d090000
ja 0x4032e1
lea eax, [esi + 0xa]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4032e1
push dword [ebp + 8]
call fcn.00401118
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4032d9
lea ecx, [ebp - 4]
push ebx
push ecx
push esi
push edi
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
jne 0x4032e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x4032ef
mov eax, dword [ebp + 0xc]
mov byte [esi + edi], bl
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4032f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x403362
cmp byte [esi], bl
je 0x403362
cmp dword [ebp + 0xc], ebx
je 0x403362
push esi
call fcn.00401118
pop ecx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403362
push edi
lea eax, [ebp + 8]
push ebx
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
pop edi
je 0x40335c
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 8], eax
je 0x403366
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x403368
mov al, 1
pop esi
pop ebx
pop ebp
ret

Function at 0x403390
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [ebp + 8], 0
je 0x403400
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call section..text
lea eax, [ebp - 0x400]
push eax
call fcn.00401118
mov cl, byte [ebp + eax - 0x401]
lea eax, [ebp + eax - 0x401]
add esp, 0xc
cmp cl, 0x2f
je 0x4033d5
cmp cl, 0x5c
jne 0x4033d8
and byte [eax], 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040315e
test al, al
pop ecx
je 0x403400
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x403404
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
leave
ret
mov al, 1
leave
ret

Function at 0x403408
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x403471
cmp byte [eax], bl
je 0x403471
cmp dword [ebp + 0xc], ebx
je 0x403471
cmp dword [ebp + 0x10], ebx
je 0x403475
push ebx
push 0x80
push 4
push ebx
push 1
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403471
push edi
lea eax, [ebp + 8]
push ebx
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
pop edi
je 0x40346b
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 8], eax
je 0x403475
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x403477
mov al, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x404065
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
mov edx, 0xff
mov esi, dword [ecx]
push edi
mov edi, dword [esp + 0x14]
mov eax, esi
xor eax, dword [esp + 0x18]
shr esi, 8
and eax, edx
mov eax, dword [edi + eax*4]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov ebx, esi
and ebx, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, ebx
shr esi, 8
mov eax, dword [edi + eax*4]
pop edi
xor eax, esi
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
pop ebx
ret
Function at 0x404d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413090
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x415e04
call fcn.0040fade
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040f444
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x3e212f1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x3e19410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
test eax, eax
jne 0x3e21314
push ebx
call dword [0x3e3201c]
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0xc], 0x646f632e
mov dword [ebp - 8], 0x65
movzx edi, word [esi + 0x14]
push dword [esi + 0x88]
add edi, 0x18
push esi
add edi, esi
call fcn.03e1a824
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x3e213bd
movzx edx, word [esi + 6]
xor ecx, ecx
test edx, edx
jle 0x3e2136a
lea eax, [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x3e21362
lea eax, [ebp - 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [edi + 4]
je 0x3e2136a
add edi, 0x28
inc ecx
cmp ecx, edx
jl 0x3e2134e
cmp ecx, edx
je 0x3e213bd
mov ecx, dword [esi + 0x34]
add ecx, dword [edi + 0xc]
mov edi, 0x3e1ae30
xor edx, edx
mov eax, dword [ecx + edx*4]
cmp eax, dword [edi + edx*4]
jne 0x3e213bd
inc edx
cmp edx, 4
jne 0x3e2137b
xor edx, edx
mov eax, dword [ecx + edx*4 + 0x140]
cmp eax, dword [edi + edx*4]
jne 0x3e213bd
inc edx
cmp edx, 4
jne 0x3e2138b
cmp dword [ecx + 0x124], 0
je 0x3e213ad
push 0x3e2167c
jmp 0x3e213b2
push 0x3e21661
push esi
push ebx
push ecx
call fcn.03e213ce
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.03e22d46
mov esp, ebp
pop ebp
ret
Function at 0x3e61b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, esi
push edi
call fcn.03e75670
mov ebx, dword [esp + 0x30]
mov ecx, esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], eax
call fcn.03e74ef0
add eax, ebx
push eax
call dword [0x100df290]
test eax, eax
jne 0x3e61c55
mov ecx, esi
call fcn.03e74ef0
mov ecx, dword [esp + 0x2c]
mov esi, dword [eax + ebx + 8]
mov edi, dword [eax + ebx + 0xc]
call fcn.03e74ef0
mov ecx, dword [esp + 0x2c]
add eax, ebx
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x14], ebx
call fcn.03e74ef0
mov ebx, dword [esp + 0x2c]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax + esi + 0x10]
mov eax, dword [eax + esi + 0x14]
mov dword [edx + 8], ecx
mov ecx, ebx
mov dword [edx], ebx
mov dword [edx + 0xc], eax
call fcn.03e74ef0
mov ebx, dword [esp + 0x20]
lea ecx, [ebx + eax]
call fcn.03e5f380
mov ecx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax + 8], esi
mov esi, ecx
mov dword [eax], ecx
mov dword [eax + 0xc], edi
call fcn.03e74ef0
lea ecx, [ebx + eax]
call fcn.03e5f380
mov ebx, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov ecx, esi
mov dword [eax], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
call fcn.03e74ef0
add eax, dword [esp + 0x20]
mov ecx, eax
call fcn.03e5f380
push dword [esp + 0x34]
mov ecx, esi
push dword [esp + 0x34]
call fcn.03e74d20
mov ecx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
jmp fcn.03e761c0

Function at 0x3e61c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, esi
push edi
call fcn.03e75670
mov ebx, dword [esp + 0x30]
mov ecx, esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], eax
call fcn.03e74ef0
add eax, ebx
push eax
call dword [0x100df290]
test eax, eax
jne 0x3e61d55
mov ecx, esi
call fcn.03e74ef0
mov ecx, dword [esp + 0x2c]
mov esi, dword [eax + ebx + 8]
mov edi, dword [eax + ebx + 0xc]
call fcn.03e74ef0
mov ecx, dword [esp + 0x2c]
add eax, ebx
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x14], ebx
call fcn.03e74ef0
mov ebx, dword [esp + 0x2c]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax + esi + 0x10]
mov eax, dword [eax + esi + 0x14]
mov dword [edx + 8], ecx
mov ecx, ebx
mov dword [edx], ebx
mov dword [edx + 0xc], eax
call fcn.03e74ef0
mov ebx, dword [esp + 0x20]
lea ecx, [ebx + eax]
call fcn.03e5f420
mov ecx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax + 8], esi
mov esi, ecx
mov dword [eax], ecx
mov dword [eax + 0xc], edi
call fcn.03e74ef0
lea ecx, [ebx + eax]
call fcn.03e5f420
mov ebx, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov ecx, esi
mov dword [eax], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
call fcn.03e74ef0
add eax, dword [esp + 0x20]
mov ecx, eax
call fcn.03e5f420
push dword [esp + 0x34]
mov ecx, esi
push dword [esp + 0x34]
call fcn.03e74d20
mov ecx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
jmp fcn.03e761c0
Function at 0x3e61d70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, ebx
push edi
call fcn.03e75670
mov ecx, ebx
call fcn.03e74ef0
mov edi, eax
add edi, dword [esp + 0x20]
push edi
call dword [0x100df290]
test eax, eax
jne 0x3e61dff
mov ecx, ebx
call fcn.03e75670
cmp dword [edi + 0x28], 0xffffffff
jne 0x3e61dab
cmp dword [edi + 0x2c], 0xffffffff
je 0x3e61de9
push esi
mov esi, dword [edi + 0x28]
lea ecx, [esp + 0xc]
mov edi, dword [edi + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
call fcn.03e61b20
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call fcn.03e61b20
pop esi
push dword [esp + 0x24]
mov ecx, ebx
push dword [esp + 0x24]
call fcn.03e74d20
mov ecx, ebx
call fcn.03e761c0
pop edi
mov ecx, ebx
pop ebx
add esp, 0x10
jmp fcn.03e761c0

Function at 0x3e61e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.03e75670
mov ecx, esi
call fcn.03e74ef0
mov edi, eax
add edi, dword [esp + 0x20]
push edi
call dword [0x100df290]
test eax, eax
jne 0x3e61e92
mov ecx, esi
call fcn.03e75670
cmp dword [edi + 0x28], 0xffffffff
jne 0x3e61e4b
cmp dword [edi + 0x2c], 0xffffffff
je 0x3e61e7c
push dword [edi + 0x2c]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push dword [edi + 0x28]
mov dword [esp + 0x18], 0xffffffff
push esi
mov dword [esp + 0x20], 0xffffffff
call fcn.03e5e0a0
lea ecx, [esp + 8]
call fcn.03e5c780
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x24]
call fcn.03e74d20
mov ecx, esi
call fcn.03e761c0
pop edi
mov ecx, esi
pop esi
add esp, 0x10
jmp fcn.03e761c0

Function at 0x3e61ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.03e75670
mov ecx, edi
call fcn.03e74ef0
mov esi, eax
add esi, dword [esp + 0x10]
lea ecx, [esi + 4]
push ecx
call dword [0x100df290]
test eax, eax
jne 0x3e61f3d
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
cmp ecx, 0xffffffff
jne 0x3e61ed7
cmp eax, ecx
je 0x3e61ee0
push eax
push ecx
mov ecx, edi
call fcn.03e74d20
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
cmp ecx, 0xffffffff
jne 0x3e61eef
cmp eax, ecx
je 0x3e61ef8
push eax
push ecx
mov ecx, edi
call fcn.03e74d20
cmp dword [esi + 0x18], 0xffffffff
jne 0x3e61f04
cmp dword [esi + 0x1c], 0xffffffff
je 0x3e61f13
push dword [esi + 0x1c]
push dword [esi + 0x18]
push edi
call fcn.03e61b70
add esp, 0xc
cmp dword [esi + 0x20], 0xffffffff
jne 0x3e61f1f
cmp dword [esi + 0x24], 0xffffffff
je 0x3e61f2e
push dword [esi + 0x24]
push dword [esi + 0x20]
push edi
call fcn.03e61c70
add esp, 0xc
push dword [esp + 0x14]
mov ecx, edi
push dword [esp + 0x14]
call fcn.03e74d20
mov ecx, edi
pop edi
pop esi
jmp fcn.03e761c0
Function at 0x3e61f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
push edi
call fcn.03e75670
mov ecx, esi
call fcn.03e74ef0
mov edi, eax
add edi, dword [esp + 0x10]
lea ecx, [edi + 4]
push ecx
call dword [0x100df290]
test eax, eax
jne 0x3e61fb4
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
cmp ecx, 0xffffffff
jne 0x3e61f87
cmp eax, ecx
je 0x3e61f90
push eax
push ecx
mov ecx, esi
call fcn.03e74d20
mov edx, dword [edi + 0x10]
mov eax, edx
mov ecx, dword [edi + 0x14]
or eax, ecx
je 0x3e61fa5
push ecx
push edx
mov ecx, esi
call fcn.03e74d20
push dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x14]
call fcn.03e74d20
pop edi
mov ecx, esi
pop esi
jmp fcn.03e761c0
Function at 0x3f09370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
xor ebp, ebp
push edi
test ebx, ebx
je 0x3f093d6
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, ebx
mov dword [esp + 0x14], eax
mov edi, dword [eax + 0x78]
add edi, ebx
cmp dword [edi + 0x18], esi
jbe 0x3f093d6
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x20]
lea eax, [eax + esi*4]
mov ecx, dword [eax + ebx]
add ecx, ebx
test ecx, 0xffff0000
je 0x3f093c5
test edx, 0xffff0000
je 0x3f093c5
push edx
push ecx
call dword [0x100df134]
mov edx, dword [esp + 0x18]
neg eax
sbb eax, eax
inc eax
jmp 0x3f093cc
xor eax, eax
cmp ecx, edx
sete al
test eax, eax
jne 0x3f093dd
inc esi
cmp esi, dword [edi + 0x18]
jb 0x3f09397
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ebp, dword [eax + ebx]
add ebp, ebx
cmp ebp, edi
jb 0x3f093d6
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x7c]
add eax, edi
cmp ebp, eax
ja 0x3f093d6
xor ecx, ecx
mov eax, ebp
cmp byte [ebp], cl
je 0x3f09419
lea esp, [esp]
lea eax, [eax + 1]
inc ecx
cmp byte [eax], 0
jne 0x3f09410
lea esi, [ecx + 1]
xor edi, edi
test esi, esi
je 0x3f0942d
push esi
call fcn.03f03830
add esp, 4
mov edi, eax
push esi
push ebp
push edi
call fcn.03f03930
add esp, 0xc
mov esi, edi
cmp byte [edi], 0
je 0x3f0944b
nop
cmp byte [esi], 0x2e
je 0x3f0945d
inc esi
cmp byte [esi], 0
jne 0x3f09440
push edi
xor esi, esi
call fcn.03f03820
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
mov byte [esi], 0
call dword [0x100df1e0]
mov ecx, eax
lea eax, [esi + 1]
push eax
push ecx
call fcn.03f09370
add esp, 8
mov esi, eax
push edi
call fcn.03f03820
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1001b43a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x1001b449
pop dword [ebp - 4]
mov eax, 0x591925fa
sub eax, 0x491771b1
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x40893
push 0
mov eax, 0x20c38200
sub eax, 0x10c02124
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x486e
xor esi, esi
add esi, eax
mov edx, 0x1003be00
add edx, dword [ebp - 4]
mov ebx, 0x780cb937
sub ebx, 0x125da9b7
mov edi, dword [edx]
xor edi, ebx
mov dword [esi], edi
add esi, 0x192ef98d
add esi, 0xe6d10677
add edx, 0x114ffa08
sub edx, 0x114ffa04
loop 0x1001b49e
add eax, 0x6b2510cb
sub eax, 0x6b23fc40
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x29cc79f7
add ecx, 0xe6338609
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001b43a
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001b43a
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x40363e
Capabilities:
Terminate process

Disassembly:
jmp 0x4525e4
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4525f5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405911
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403751
Capabilities:
Query environment variable

Disassembly:
jmp 0x49bf28
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49bf39
pop esi
ret
push ebx
push edi
push esi
call fcn.0049be0f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49bf61
push ebx
push esi
push edi
call fcn.004056f5
add esp, 0xc
push 0
call fcn.0040625d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4057c2
Capabilities:
Parse pe header

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

Function at 0x43f945
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004037ab
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 0x43f984
sub eax, 1
je 0x43f97f
sub eax, 1
je 0x43f97b
xor eax, eax
leave
ret
push 3
jmp 0x43f986
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x486079
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4860b8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4860b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4860b8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4860b8
cmp dword [ecx + 0x74], 0xe
jbe 0x4860b8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x494bd5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e06
mov eax, dword [0x4cf040]
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.00405e66
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x494c17
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x494d73
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405fd3
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 + 0x4d2968]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004032bf
mov ecx, dword [esi*4 + 0x4d2968]
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 0x494d6c
cmp eax, dword [ecx + edi + 0x24]
jne 0x494d6c
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 0x494d6c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004032bf
add esp, 0x14
test edx, edx
jl 0x494d6c
jg 0x494ce2
test eax, eax
jb 0x494d6c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x494d6c
jl 0x494cfc
cmp dword [ebp - 0x1008], eax
ja 0x494d6c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x494d1a
test ebx, ebx
je 0x494d53
cmp ecx, edi
jae 0x494d53
mov al, byte [ecx]
cmp al, 0xd
jne 0x494d34
lea eax, [edi - 1]
cmp ecx, eax
jae 0x494d40
cmp byte [ecx + 1], 0xa
jne 0x494d40
inc ecx
jmp 0x494d40
movzx eax, al
movsx eax, byte [eax + 0x4cfbe0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x494d1a
cmp edx, ebx
jne 0x494d1a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x494d71
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030a8
leave
ret