joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
nop
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x60e81ab7
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop eip
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7f247c27
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x40152e
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x40158a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040152e
mov dword [esp], 0x401664
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020c6
sub eax, 0x401664
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40162d
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.0040144c
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014ad
lea eax, [ebx + 0x1b600]
mov cl, bl
mov edx, 0x40300c
shl eax, cl
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, edx
or eax, 1
imul ebx, eax
sub edx, ebx
mov dword [esp], edx
call fcn.00401dc9
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6ee25a27
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6e89006d
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1b411a72
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi]
sub esp, 0xc
push ebx
push ebp
push edi
push 1
xor ebp, ebp
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
je 0x1b413b4f
mov edx, dword [esi]
push ebp
lea ecx, [esp + 0x10]
push ecx
push 0x1000
lea ebx, [esi + 0x2ce4]
push ebx
push edx
mov dword [esi + 0x2080], edi
mov dword [esi + 0x2ca4], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1b4225a5
mov ebp, dword [esp + 0xc]
cmp ebp, 0x1000
jb 0x1b413b40
test ebp, ebp
je 0x1b4225b0
cmp dword [esp + 0x1c], 0xd698
je 0x1b4225c0
xor edx, edx
cmp edi, edx
mov dword [esp + 0x14], 0x1000
je 0x1b416259
mov eax, dword [esi + 0x2cd0]
cmp eax, edx
jne 0x1b422611
mov eax, dword [esi + 0x2ccc]
lea ecx, [esi + 0x2ccc]
mov dword [esi + 0x2cb4], eax
mov eax, dword [esi + 0x2cd0]
cmp eax, edx
mov dword [esi + 0x2cb8], eax
jne 0x1b42261c
mov edx, dword [esi + 0x10]
push edx
lea edx, [esp + 0x18]
push edx
lea edx, [esi + 0x24]
push edx
lea edx, [esp + 0x18]
push edx
mov edx, esi
sub edx, eax
mov eax, dword [esp + 0x2c]
add edx, 0x2ce4
push edx
push ecx
push eax
call fcn.1b41135d
mov ebx, eax
mov eax, ebp
sub eax, dword [esp + 0xc]
mov dword [esi + 0x2cd0], eax
jne 0x1b422651
test ebx, ebx
jne 0x1b413b4f
mov eax, dword [esp + 0x14]
cmp eax, 0x1000
mov dword [esi + 0x2028], eax
jb 0x1b413b57
mov dword [esi + 0x20a8], 0xffffffff
cmp dword [esi + 0x2024], 0
je 0x1b41626a
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
mov dword [esi + 0x2ca4], 1
jmp 0x1b411ad1
or ebx, 0xffffffff
jmp 0x1b411b9d
mov dword [esi + 0x20a8], eax
jmp 0x1b411b90
mov dword [esi + 0x2ccc], edx
mov dword [esi + 0x2cd0], edx
jmp 0x1b411af9
push 0x2000
call fcn.1b4117ae
test eax, eax
mov dword [esi + 0x2024], eax
je 0x1b422671
pop edi
pop ebp
mov eax, ebx
mov dword [esi + 0x2030], 0x1000
mov dword [esi + 0x20a8], 0xffffffff
pop ebx
add esp, 0xc
ret 4
mov dword [esi + 0x2ca4], ebp
jmp 0x1b413b4f
pop edi
mov ebx, 0xfffff9bd
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebp
call fcn.1b43628a
mov ebx, eax
test ebx, ebx
jne 0x1b411b9d
mov ebx, dword [esp + 0x10]
cmp ebx, ebp
je 0x1b411ae7
mov edx, dword [esi]
push 1
push eax
mov ecx, ebx
sub ecx, ebp
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
je 0x1b413b4f
mov ebp, ebx
mov dword [esi + 0x2080], edi
mov dword [esp + 0xc], ebp
jmp 0x1b411ae7
add ebp, eax
mov dword [esp + 0xc], ebp
jmp 0x1b411b07
mov edx, dword [esi + 0x2cd4]
mov dword [esi + 0x2cbc], edx
mov edx, dword [esi + 0x2cd8]
mov dword [esi + 0x2cc0], edx
mov edx, dword [esi + 0x2cdc]
mov dword [esi + 0x2cc4], edx
mov edx, dword [esi + 0x2ce0]
mov dword [esi + 0x2cc8], edx
jmp 0x1b411b2d
mov ecx, esi
sub ecx, eax
push eax
lea edx, [ecx + 0x3ce4]
push edx
add ecx, 0x2ce4
push ecx
call fcn.1b4116f0
add esp, 0xc
jmp 0x1b411b69
pop edi
mov ebx, 0xfffffc0d
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
Function at 0x1b4156a8
Capabilities:
Set current directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1b44b010]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
xor ecx, ecx
cmp dword [0x1b44b540], ecx
je 0x1b4237ea
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1b41133e
add esp, 0x218
ret 4
push 0xffffffffffffffff
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
push eax
lea ecx, [esp + 8]
call fcn.1b43cfe7
cmp dword [esp + 0x210], 0x104
jl 0x1b423851
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
cmp eax, ecx
je 0x1b423838
mov edx, eax
shr edx, 0x10
je 0x1b423838
cmp dword [esp], 0xffffffff
je 0x1b423838
push eax
call fcn.1b41b03d
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1b41133e
add esp, 0x218
ret 4
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x1b423882
mov edx, eax
shr edx, 0x10
je 0x1b423882
cmp dword [esp + 4], 0xffffffff
je 0x1b423882
push eax
call fcn.1b41b03d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1b41133e
add esp, 0x218
ret 4

Function at 0x1b4157c8
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1b44b010]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x1b44b540], 0
mov eax, dword [esp + 0x224]
je 0x1b423778
push eax
mov eax, dword [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1b41133e
add esp, 0x21c
ret 8
mov ecx, dword [esp + 0x220]
push esi
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.1b43d2b4
mov eax, dword [esp + 0x218]
mov edx, dword [esp + 8]
add eax, eax
push edx
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 4]
mov esi, eax
call fcn.1b43d0ed
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x1b4237d0
mov edx, eax
shr edx, 0x10
je 0x1b4237d0
cmp dword [esp + 4], 0xffffffff
je 0x1b4237d0
push eax
call fcn.1b41b03d
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1b41133e
add esp, 0x21c
ret 8
Function at 0x1b41950c
Capabilities:
Get file size

Disassembly:
cmp dword [esp + 4], 3
push ebx
push esi
push edi
mov esi, eax
mov ebx, ecx
je 0x1b422058
push esi
push 0x12
push ebx
call fcn.1b4194c6
test eax, eax
jne 0x1b4220ac
mov eax, dword [esi]
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
je 0x1b4220d9
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
lea edi, [esi + 4]
push edi
push 0x12
push ebx
call fcn.1b434474
test eax, eax
je 0x1b422081
cmp eax, 0xfffffffb
jne 0x1b4220c9
push edi
push 0x10
push ebx
mov dword [esi + 8], 1
call fcn.1b434474
test eax, eax
jne 0x1b4220c9
mov eax, dword [edi]
xor ebx, ebx
push ebx
push 2
push eax
call fcn.1b4346f9
mov ecx, dword [edi]
add esi, 0x14
push esi
push ecx
call fcn.1b4346e1
mov edx, dword [edi]
push ebx
push ebx
push edx
call fcn.1b4346f9
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
cmp eax, 0xfffffffb
jne 0x1b4220c9
push esi
push 0x10
push ebx
mov dword [esi + 8], 1
call fcn.1b4194c6
test eax, eax
je 0x1b41952f
cmp eax, 0xfffffffc
jne 0x1b4220ea
pop edi
pop esi
mov eax, 0xfffff8f1
pop ebx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, 0xfffffbf8
pop ebx
ret 4
cmp eax, 0xfffffffe
jne 0x1b4220fa
pop edi
pop esi
mov eax, 0xfffff8ed
pop ebx
ret 4
sub eax, 0xfffffffd
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffff7
pop esi
add eax, 0xfffffc01
pop ebx
ret 4

Function at 0x1b419d3f
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x158
mov eax, dword [0x1b44b010]
xor eax, esp
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x15c]
push esi
push 0x41
mov esi, ecx
lea ecx, [esp + 0x18]
push ecx
push 0x41
push eax
call fcn.1b419cfe
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1b419d73
sub eax, edx
cmp byte [esp + eax + 0x13], 0x2e
je 0x1b421d1e
push 0x100
lea edx, [esp + 0x5c]
push edx
push 0x100
push esi
call fcn.1b419cfe
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x1b419dfc
push 0x10
lea eax, [esp + 0xc]
push eax
push 0x1b419df9
push 0
lea ecx, [esp + 0x28]
push ecx
call esi
lea edx, [esp + 0x58]
push edx
push 0x10
lea eax, [esp + 0xc]
push eax
push 0x1b419df9
push 0
lea ecx, [esp + 0x28]
push ecx
call esi
mov ecx, dword [esp + 0x158]
xor eax, eax
cmp byte [esp + 4], al
pop esi
setne al
xor ecx, esp
call fcn.1b41133e
add esp, 0x158
ret 4
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1b421d27
sub eax, edx
mov byte [esp + eax + 0x13], cl
jmp 0x1b419d89
Function at 0x1b419e46
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x218
mov eax, dword [0x1b44b010]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
xor ecx, ecx
cmp dword [0x1b44b540], ecx
je 0x1b4234fd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1b41133e
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0xc]
call fcn.1b43cfe7
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x1b423542
mov edx, eax
shr edx, 0x10
je 0x1b423542
cmp dword [esp + 4], 0xffffffff
je 0x1b423542
push eax
call fcn.1b41b03d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1b41133e
add esp, 0x218
ret 4

Function at 0x1b41ab39
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
jne 0x1b42562a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1b42562a
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1b41bc90
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1b44b010]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x1b44b540], 0
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x22c]
je 0x1b423412
mov edx, dword [esp + 0x224]
push ecx
push eax
mov eax, dword [esp + 0x228]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1b41133e
add esp, 0x21c
ret 0x10
push esi
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.1b43d2b4
mov edx, dword [esp + 0x218]
mov ecx, dword [esp + 8]
lea eax, [edx + edx]
mov edx, dword [esp + 0x228]
shr eax, 1
push eax
mov eax, dword [esp + 0x228]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 4]
call fcn.1b43d0ed
lea ecx, [esp + 4]
mov esi, eax
call fcn.1b43d0ed
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x1b42347d
mov edx, eax
shr edx, 0x10
je 0x1b42347d
cmp dword [esp + 4], 0xffffffff
je 0x1b42347d
push eax
call fcn.1b41b03d
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1b41133e
add esp, 0x21c
ret 0x10
Function at 0x1b41caa9
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push edi
push 0x1b41ae4c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x1b4244c0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1b41cc44
push edi
call esi
push 0x1b41cc38
push edi
mov dword [0x1b44f740], eax
call esi
push 0x1b41cc2c
push edi
mov dword [0x1b44f744], eax
call esi
push 0x1b41cc24
push edi
mov dword [0x1b44f748], eax
call esi
cmp dword [0x1b44f740], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x1b44f74c], eax
jne 0x1b4244c9
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x1b44f744], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1b44f740], 0x1b41cc4d
mov dword [0x1b44f748], esi
mov dword [0x1b44f74c], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1b44b534], eax
je 0x1b41cc1d
push dword [0x1b44f744]
push eax
call esi
test eax, eax
je 0x1b41cc1d
call fcn.1b41e407
push dword [0x1b44f740]
call fcn.1b41b9e7
push dword [0x1b44f744]
mov dword [0x1b44f740], eax
call fcn.1b41b9e7
push dword [0x1b44f748]
mov dword [0x1b44f744], eax
call fcn.1b41b9e7
push dword [0x1b44f74c]
mov dword [0x1b44f748], eax
call fcn.1b41b9e7
add esp, 0x10
mov dword [0x1b44f74c], eax
call fcn.1b41b461
test eax, eax
je 0x1b41cc18
push fcn.1b43e964
push dword [0x1b44f740]
call fcn.1b41ca5a
pop ecx
call eax
mov dword [0x1b44b538], eax
cmp eax, 0xffffffff
je 0x1b41cc18
push 0x214
push 1
call fcn.1b41aa26
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1b41cc18
push esi
push dword [0x1b44b538]
push dword [0x1b44f748]
call fcn.1b41ca5a
pop ecx
call eax
test eax, eax
je 0x1b4244e8
push 0
push esi
call fcn.1b41dae5
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
pop esi
pop edi
ret
test eax, eax
je 0x1b41cb0f
jmp 0x1b41cb33
call fcn.1b424429
xor eax, eax
jmp 0x1b41cc08
call fcn.1b424429
xor eax, eax
pop edi
ret
cmp dword [0x1b44f744], 0
je 0x1b41cb0f
cmp dword [0x1b44f748], 0
jne 0x1b41cc0b
jmp 0x1b41cb0f
push esi
call fcn.1b41b03d
pop ecx
jmp 0x1b41cc18
Function at 0x1b41cdce
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1b44f9e0]
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1b41ce77
call esi
mov edi, eax
cmp edi, ebx
je 0x1b424f4c
mov dword [0x1b44f9e0], 1
cmp edi, ebx
je 0x1b424f6e
cmp word [edi], bx
mov eax, edi
je 0x1b41ce23
inc eax
inc eax
cmp word [eax], bx
jne 0x1b41ce15
inc eax
inc eax
cmp word [eax], bx
jne 0x1b41ce15
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1b41ce69
push eax
call fcn.1b41cd72
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x1b41ce69
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
je 0x1b424f81
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
cmp eax, 1
je 0x1b41ce06
jmp 0x1b424f92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1b424f64
push 2
pop eax
mov dword [0x1b44f9e0], eax
jmp 0x1b41ce77
mov eax, dword [0x1b44f9e0]
jmp 0x1b41ce77
call esi
mov edi, eax
cmp edi, ebx
jne 0x1b41ce0e
xor eax, eax
jmp 0x1b41ce72
push dword [ebp - 4]
call fcn.1b41b03d
pop ecx
mov dword [ebp - 4], ebx
jmp 0x1b41ce66
cmp eax, 2
je 0x1b424f9b
cmp eax, ebx
jne 0x1b424f7a
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x1b424f7a
cmp byte [esi], bl
je 0x1b424fb5
inc eax
cmp byte [eax], bl
jne 0x1b424fab
inc eax
cmp byte [eax], bl
jne 0x1b424fab
sub eax, esi
inc eax
push eax
mov dword [ebp - 8], eax
call fcn.1b41cd72
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x1b424fd1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x1b424f7a
push dword [ebp - 8]
push esi
push edi
call fcn.1b4116f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x1b41ce72
Function at 0x1b41d762
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1b41d772
call fcn.1b41d14c
pop ebp
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1b44b010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
push edi
jne 0x1b423ee3
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1b41f122
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
and eax, 0x7fff
cmp ecx, 2
jne 0x1b423ec8
mov edx, dword [ebp - 0x90]
mov dword [0x1b44f8a8], ecx
mov ecx, dword [ebp - 0x94]
mov esi, ecx
shl esi, 8
add esi, edx
push 1
mov dword [0x1b44f8b0], esi
mov dword [0x1b44f8b4], ecx
mov dword [0x1b44f8b8], edx
mov dword [0x1b44f8ac], eax
call fcn.1b41e2fa
test eax, eax
pop ecx
je 0x1b41f122
call fcn.1b41caa9
test eax, eax
je 0x1b423ed2
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1b45035c], eax
call fcn.1b41cdce
mov dword [0x1b44f720], eax
call fcn.1b41b1a0
test eax, eax
jl 0x1b423edc
call fcn.1b41cc7c
test eax, eax
jl 0x1b41f129
call fcn.1b41d881
test eax, eax
jl 0x1b41f129
push 0
call fcn.1b41d9cc
test eax, eax
pop ecx
jne 0x1b41f129
inc dword [0x1b44f71c]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1b41133e
leave
ret 0xc
call fcn.1b424429
call fcn.1b4427b1
jmp 0x1b41d86e
xor eax, eax
jmp 0x1b41d871
call fcn.1b424e27
jmp 0x1b423edc
or eax, 0x8000
jmp 0x1b41d7cf
call fcn.1b4427b1
jmp 0x1b41f122
call fcn.1b424429
jmp 0x1b423ed2
xor edi, edi
cmp eax, edi
jne 0x1b423f1b
cmp dword [0x1b44f71c], edi
jle 0x1b41f122
dec dword [0x1b44f71c]
cmp dword [0x1b454b3c], edi
jne 0x1b423f08
call fcn.1b424bbc
cmp dword [ebp + 0x10], edi
jne 0x1b41d86e
call fcn.1b424e27
jmp 0x1b41f113
cmp eax, 2
jne 0x1b423f6c
call fcn.1b41480c
push 0x214
push 1
call fcn.1b41b174
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x1b41f122
push esi
push dword [0x1b44b538]
push dword [0x1b44f748]
call fcn.1b41ca5a
pop ecx
call eax
test eax, eax
je 0x1b423f60
push edi
push esi
call fcn.1b41dae5
pop ecx
jmp 0x1b423f7b
push esi
call fcn.1b41b03d
pop ecx
jmp 0x1b41f122
cmp eax, 3
jne 0x1b41d86e
push edi
call fcn.1b43ead8
pop ecx
jmp 0x1b41d86e

Function at 0x1b41d90f
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1b41d951
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1b42562e
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jae 0x1b42562e
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x1b41d94c
add edx, 1
add eax, 0x28
cmp edx, esi
jae 0x1b41d951
jmp 0x1b41d934
Function at 0x1b429a35
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, 0xffff
je 0x1b429a5e
mov eax, dword [esp + 0xc]
ret 0xc

Function at 0x1b429a61
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, 0xffff
je 0x1b429a8a
mov eax, dword [esp + 0xc]
ret 0xc
Function at 0x1b429f06
Capabilities:
Read .ini file

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov word [eax], 0
push esi
mov eax, ebx
push edi
mov byte [esp + 0x13], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1b429f25
sub eax, edx
sar eax, 1
mov esi, eax
lea edi, [esi + esi + 1]
push edi
call fcn.1b4117ae
mov ebp, eax
test ebp, ebp
je 0x1b429fc1
push 0
push 0
push edi
push ebp
add esi, 1
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x20]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1b429f64
sub eax, edx
sar eax, 1
mov esi, eax
lea edi, [esi + esi + 1]
push edi
call fcn.1b4117ae
mov ebx, eax
test ebx, ebx
je 0x1b429fbb
mov ecx, dword [esp + 0x20]
push 0
push 0
push edi
push ebx
add esi, 1
push esi
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x28]
add eax, 1
push eax
mov dword [esp + 0x20], eax
call fcn.1b4117ae
mov esi, eax
test esi, esi
jne 0x1b429fcc
push ebx
call fcn.1b41127c
push ebp
call fcn.1b41127c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 0x14
mov eax, dword [esp + 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1b429fd4
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
lea eax, [eax + eax + 1]
push eax
call fcn.1b4117ae
mov edi, eax
test edi, edi
jne 0x1b42a014
push ebx
call fcn.1b41127c
push ebp
call fcn.1b41127c
push esi
call fcn.1b41127c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 0x14
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
push 0
push 0
lea eax, [eax + eax + 1]
push eax
mov eax, dword [esp + 0x24]
push edi
add edx, 1
push edx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x28]
push edi
push ecx
push esi
lea edx, [esp + 0x1f]
push edx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
mov dword [esp + 0x24], eax
call fcn.1b41127c
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1b42a05c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ecx
push edx
sub eax, edi
add eax, 1
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call fcn.1b41127c
push ebx
call fcn.1b41127c
push ebp
call fcn.1b41127c
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14