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

Disassembly:
push 0xffffffffffffffff
push 0x42599c
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x42f114]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42f114]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
push 0x28c000
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call fcn.00415440
xor eax, eax
lea ebp, [esi + 0x28c004]
add esp, 0xc
mov word [ebp], ax
lea eax, [esp + 0x18]
push eax
xor ecx, ecx
xor edx, edx
lea edi, [esi + 0x28c20c]
push 0x104
mov dword [esi + 0x28c000], ebx
mov word [edi], cx
mov word [esi + 0x28c414], dx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
jmp 0x4033d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4033d0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x5c
jne 0x403406
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4033f0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x16], cx
lea eax, [esp + 0x18]
mov edx, edi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x403410
push 0x934
mov dword [esi + 0x28c82c], ebx
mov dword [esi + 0x28c830], ebx
mov dword [esi + 0x28c824], ebx
call fcn.00414f91
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x22c], ebx
cmp eax, ebx
je 0x403456
mov ecx, eax
call fcn.004128e0
jmp 0x403458
xor eax, eax
mov ecx, esi
mov dword [esp + 0x22c], 0xffffffff
mov dword [esi + 0x28c828], eax
call fcn.00402a40
test eax, eax
je 0x4034a8
push 0x1211c
call fcn.00414f91
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x22c], 1
cmp eax, ebx
je 0x4034a0
push ebx
push ebx
push ebp
mov ecx, eax
call fcn.00410690
jmp 0x4034a2
xor eax, eax
mov dword [esi + 0x28c824], eax
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004153dc
add esp, 0x21c
ret
Function at 0x404740
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40474b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x404829
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427e10]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x427e10]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x427e10]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427e10]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427e10]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427e10]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427e10]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427e10]
inc ecx
sub edx, 8
sub esi, 1
jne 0x404765
pop edi
test edx, edx
je 0x40484b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x427e10]
inc ecx
sub edx, 1
jne 0x404830
not eax
pop esi
ret

Function at 0x404850
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x427e10]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x427e10]
mov dword [edx + 8], ecx
ret

Function at 0x404e10
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x404e52
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404e46
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x404e63
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.00415b70
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x406080
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42f114]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x4060bd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4060bd
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x406176
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x4060d8
cmp al, 0x5c
jne 0x4060da
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4060d0
cmp esi, ebp
je 0x406110
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00415b70
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.00406080
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x40612b
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406121
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406130
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406140
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x406176
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.004153dc
add esp, 0x20c
ret
Function at 0x406190
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x42f114]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x4061d0
push esi
call ebp
cmp eax, 0xffffffff
jne 0x4061d0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4062b6
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x4061ef
cmp ax, 0x5c
jne 0x4061f1
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x4061e3
push edi
cmp ecx, ebx
je 0x406234
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.00415b70
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.00406190
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x40625f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x406250
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x406250
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406263
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x406280
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406280
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x4062b6
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004153dc
add esp, 0x414
ret
Function at 0x407a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x407a9a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x407a8f
cmp dword [edi + 0x7c], ebx
je 0x407aad
push edi
call fcn.00405900
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00405720
add esp, 0x10
test eax, eax
je 0x407ad4
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.00415ff2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x407b15
push 0x4000
call fcn.00415ff2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x407b21
push esi
call fcn.00415f15
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x407b6d
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00404b00
add esp, 4
test eax, eax
jne 0x407b6d
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x407b97
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x407ba0
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
neg ecx
sbb ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x407be7
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x407be7
push eax
push ebx
call fcn.00404850
add esp, 8
add ebp, 1
jne 0x407bd0
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x407e70
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x407fa2
cmp dword [ebx + 4], 0xffffffff
jne 0x407fa2
push ebp
push esi
push edi
lea esi, [ebx + 0x140]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ebp, [ebx + 0x244]
push ebp
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407eb2
sub eax, edx
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x407ee3
cmp al, 0x2f
je 0x407ee3
dec esi
jmp 0x407ed0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x407ed0
mov ax, word [0x428334]
mov edi, esi
mov word [edi], ax
mov eax, ebp
lea edx, [eax + 2]
jmp 0x407ef0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407ef0
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x407f34
cmp ax, 0x2f
je 0x407f34
add ebp, 0xfffffffe
mov edi, ebp
jmp 0x407f20
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407f20
mov ecx, dword [0x4263f4]
mov dword [edi], ecx
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmp edi, 1
jne 0x407f5f
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407f5f
pop edi
pop esi
pop ebp
mov eax, 0x2000000
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push edi
push eax
push esi
call fcn.00404bb0
add esp, 0x10
test eax, eax
jne 0x407f82
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push eax
call fcn.004078b0
add esp, 4
mov dword [ebx], eax
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop ebp
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x408a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x425a08
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42f114]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push str.GetBitmapResource_n
call fcn.0040d550
add esp, 4
cmp dword [0x430804], 0
jne 0x408b46
push 0x42845c
push 0x6a
xor ebx, ebx
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x408b09
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408b09
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov edi, eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea ecx, [esp + 0x17]
call fcn.0040d880
push ebx
push edi
lea ecx, [esp + 0x1f]
mov dword [esp + 0x28], 0
call fcn.0040d890
mov dword [0x430804], eax
test edi, edi
je 0x408b35
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x17]
mov dword [esp + 0x20], 0xffffffff
call fcn.0040a050
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x409720
Capabilities:
Hide graphical window

Disassembly:
push esi
call fcn.004096f0
mov esi, eax
test esi, esi
je 0x40974e
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x40973b
pop esi
ret
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x38], 0
mov eax, 1
pop esi
ret
Function at 0x40d550
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3014
call fcn.004157b0
mov eax, dword [0x42f114]
xor eax, esp
mov dword [esp + 0x3010], eax
cmp byte [0x430f44], 0
jne 0x40d57e
cmp byte [0x430f45], 0
je 0x40d624
mov eax, dword [esp + 0x3018]
push eax
lea ecx, [esp + 0x1014]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x301c]
push edx
lea eax, [esp + 0x1014]
push eax
lea ecx, [esp + 0x2018]
push ecx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0xc]
movzx edx, word [esp + 0xa]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 8]
push edx
movzx edx, word [esp + 0x12]
push eax
movzx eax, word [esp + 0x12]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push str._02i__02i__02i__02i:_02i:_02i:_03i
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x2034]
push edx
lea eax, [esp + 0x38]
push 0x1000
push eax
call fcn.00417827
add esp, 0x30
cmp byte [0x430f44], 0
je 0x40d624
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x3010]
xor ecx, esp
call fcn.004153dc
add esp, 0x3014
ret

Function at 0x40d640
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4014
call fcn.004157b0
mov eax, dword [0x42f114]
xor eax, esp
mov dword [esp + 0x4010], eax
cmp byte [0x430f44], 0
jne 0x40d66e
cmp byte [0x430f45], 0
je 0x40d6f6
mov ecx, dword [esp + 0x4018]
lea eax, [esp + 0x401c]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x400
push edx
call fcn.0041796f
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0xe]
movzx eax, word [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
movzx ecx, word [esp + 0xe]
push edx
movzx edx, word [esp + 0x10]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
push ecx
push edx
lea eax, [esp + 0x2030]
push str._02i__02i__02i__02i:_02i:_02i:_03i__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
cmp byte [0x430f44], 0
je 0x40d6f6
lea ecx, [esp + 0x2010]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x4010]
xor ecx, esp
call fcn.004153dc
add esp, 0x4014
ret
Function at 0x40dc80
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
mov esi, ecx
push 0x80000000
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x40dcd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadIniFileA___File_Open_failed____ld_n
call fcn.0040d550
add esp, 8
xor eax, eax
pop esi
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x1e
jae 0x40dd0c
push str.LoadIniFileA___File_size_is_too_small_n
call fcn.0040d550
mov ecx, dword [esi + 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
xor eax, eax
pop esi
ret 4
add eax, 4
push eax
call fcn.00415793
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
jne 0x40dd3d
push str.LoadIniFileA___Memory_allocation_error._n
call fcn.0040d550
mov edx, dword [esi + 0x10]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
xor eax, eax
pop esi
ret 4

Function at 0x40dd50
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
mov esi, ecx
push 0x80000000
push ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x40ddaa
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadIniFileW___File_Open_failed____ld____s__n
call fcn.0040d640
add esp, 0xc
pop esi
xor eax, eax
pop ebx
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x1e
jae 0x40dde0
push str.LoadIniFileW___File_size_is_too_small_n
call fcn.0040d640
mov eax, dword [esi + 0x10]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
pop esi
xor eax, eax
pop ebx
ret 4
add eax, 4
push eax
call fcn.00415793
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
jne 0x40de11
push str.LoadIniFileW___Memory_allocation_error._n
call fcn.0040d640
mov ecx, dword [esi + 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x40de20
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
mov dword [esp + 8], edi
cmp eax, 0xffffffff
je 0x40de68
mov edx, dword [esi + 0x14]
push edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
cmp eax, edi
jbe 0x40de5e
mov edx, dword [esi + 0x18]
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov edi, 1
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x40de70
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
mov dword [esp + 8], edi
cmp eax, 0xffffffff
je 0x40deba
mov edx, dword [esi + 0x14]
push edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
cmp eax, edi
jbe 0x40deb0
mov edx, dword [esi + 0x18]
shr eax, 1
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov edi, 1
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x40dee0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x42f114]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov edi, dword [esp + 0x1c]
push str.IsIniUnicodeA_n
call fcn.0040d550
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40df4b
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsIniUnicodeA___File_Open_failed____ld____s__n
call fcn.0040d550
add esp, 0xc
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004153dc
add esp, 0x10
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x1c], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 0xfd
cmp byte [esp + 0xc], al
jbe 0x40df36
cmp byte [esp + 0xd], al
jbe 0x40df36
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.004153dc
add esp, 0x10
ret 4
Function at 0x410690
Capabilities:
Access peb ldr_data
Get ntdll base address
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x425c89
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x42f114]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42f114]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov esi, ecx
lea ecx, [esi + 0x12104]
mov dword [esp + 0x18], esi
call fcn.0040e290
xor ebx, ebx
push 0x934
mov dword [esp + 0x34], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x11df0], ebx
mov byte [esi + 0x12100], bl
mov dword [esi], ebx
call fcn.00414f91
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x30], 1
cmp eax, ebx
je 0x41071a
mov ecx, eax
call fcn.004128e0
jmp 0x41071c
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x20], eax
mov al, byte [eax + 5]
mov byte [esi + 0x24], al
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x30], bl
mov dword [esi + 0x28], eax
cmp ecx, ebx
je 0x41073a
mov eax, ecx
push ebp
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.0040dd50
mov eax, dword [esi + 0x10]
mov byte [esi + 0x1c], bl
cmp eax, 0xffffffff
je 0x41078f
push ebx
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 0xfd
cmp byte [esp + 0x1c], al
jbe 0x410782
cmp byte [esp + 0x1d], al
jbe 0x410782
mov byte [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, esi
cmp byte [esi + 0x1c], bl
je 0x41079d
call fcn.0040de70
jmp 0x4107a2
call fcn.0040de20
push ebx
lea edi, [esi + 0x11ef8]
xor ecx, ecx
push edi
mov word [edi], cx
mov ecx, dword [esi + 0x20]
push ebp
mov byte [esi + 0x11df4], bl
call fcn.00411d70
cmp word [edi], bx
jne 0x4107df
mov eax, 0x429170
sub edi, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edi + eax], cx
add eax, 2
cmp cx, bx
jne 0x4107d0
mov ecx, esi
call fcn.0040fe70
mov edx, dword [esi + 0x12108]
push edx
push 0x429150
call fcn.0040d640
add esp, 8
mov ecx, esi
call fcn.00410950
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004153dc
add esp, 0x20
ret 0xc