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

Disassembly:
push 0xffffffffffffffff
push 0x4269bc
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431114]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
push 0x28c000
xor edi, edi
mov esi, ecx
push edi
push esi
call fcn.00416560
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 ebx, [esi + 0x28c20c]
push 0x104
mov dword [esi + 0x28c000], edi
mov word [ebx], cx
mov word [esi + 0x28c414], dx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
jmp 0x4039a0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4039a0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x5c
jne 0x4039d6
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4039c0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x16], cx
lea eax, [esp + 0x18]
mov edx, ebx
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x4039e0
push 0x934
mov dword [esi + 0x28c82c], edi
mov dword [esi + 0x28c830], edi
mov dword [esi + 0x28c824], edi
call fcn.004160af
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x22c], edi
cmp eax, edi
je 0x403a26
mov ecx, eax
call fcn.004139a0
jmp 0x403a28
xor eax, eax
push edi
push ebx
mov ecx, eax
mov dword [esp + 0x234], 0xffffffff
mov dword [esi + 0x28c828], eax
call fcn.00412450
mov ecx, esi
call fcn.00402d10
test eax, eax
je 0x403a81
push 0x4435c
call fcn.004160af
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x22c], 1
cmp eax, edi
je 0x403a79
push edi
push edi
push ebp
mov ecx, eax
call fcn.004114d0
jmp 0x403a7b
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.004164fa
add esp, 0x21c
ret
Function at 0x404d90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x404d9b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x404e79
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 + 0x429200]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x429200]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x429200]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x429200]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x429200]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x429200]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x429200]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x429200]
inc ecx
sub edx, 8
sub esi, 1
jne 0x404db5
pop edi
test edx, edx
je 0x404e9b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x429200]
inc ecx
sub edx, 1
jne 0x404e80
not eax
pop esi
ret

Function at 0x404ea0
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 + 0x429200]
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 + 0x429200]
mov dword [edx + 8], ecx
ret

Function at 0x405460
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 0x4054a2
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 0x405496
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 0x4054b3
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.00416d60
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 0x4066f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x431114]
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 0x406730
push esi
call ebp
cmp eax, 0xffffffff
jne 0x406730
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x406816
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x40674f
cmp ax, 0x5c
jne 0x406751
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x406743
push edi
cmp ecx, ebx
je 0x406794
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.00416d60
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.004066f0
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x4067bf
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x4067b0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4067b0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4067c3
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4067e0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4067e0
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 0x406816
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.004164fa
add esp, 0x414
ret
Function at 0x407fe0
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 0x407ffa
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x407fef
cmp dword [edi + 0x7c], ebx
je 0x40800d
push edi
call fcn.00405f50
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.00405d70
add esp, 0x10
test eax, eax
je 0x408034
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.00417114
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x408075
push 0x4000
call fcn.00417114
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 0x408081
push esi
call fcn.004165da
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 0x4080cd
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00405150
add esp, 4
test eax, eax
jne 0x4080cd
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 0x4080f7
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x408100
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 0x408147
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x408147
push eax
push ebx
call fcn.00404ea0
add esp, 8
add ebp, 1
jne 0x408130
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 0x4083d0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x408502
cmp dword [ebx + 4], 0xffffffff
jne 0x408502
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea esi, [ebx + 0x244]
push esi
push 0x104
call edi
lea ebp, [ebx + 0x44c]
push ebp
push 0x104
call edi
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408410
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x40844b
cmp ax, 0x2f
je 0x40844b
add esi, 0xfffffffe
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x408436
mov eax, dword [0x427404]
mov edi, esi
mov dword [edi], eax
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408450
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x44a]
cmp ax, 0x5c
je 0x408494
cmp ax, 0x2f
je 0x408494
add ebp, 0xfffffffe
mov edi, ebp
jmp 0x408480
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408480
mov ecx, dword [0x427404]
mov dword [edi], ecx
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmp edi, 1
jne 0x4084bf
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4084bf
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.00405200
add esp, 0x10
test eax, eax
jne 0x4084e2
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push eax
call fcn.00407e10
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 0x409010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x426a28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431114]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push str.GetBitmapResource_n
call fcn.0040e270
add esp, 4
cmp dword [0x432824], 0
jne 0x4090d2
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x429848
push 0x6a
xor ebp, ebp
push ebp
xor edi, edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x409095
push esi
push ebp
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409095
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebp
mov edi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
lea ecx, [esp + 0x17]
call fcn.0040e440
push ebp
push edi
lea ecx, [esp + 0x1f]
mov dword [esp + 0x28], 0
call fcn.0040e450
mov dword [0x432824], eax
test edi, edi
je 0x4090c1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x17]
mov dword [esp + 0x20], 0xffffffff
call fcn.0040a7f0
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 0x409e90
Capabilities:
Hide graphical window

Disassembly:
push esi
call fcn.00409e60
mov esi, eax
test esi, esi
je 0x409ebe
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x409eab
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 0x40dc60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0xc], eax
lea eax, [esp]
lea edx, [ecx + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov ecx, eax
mov byte [esp], 0x61
mov byte [esp + 1], 0x6a
mov byte [esp + 2], 0x66
mov byte [esp + 3], 0x69
mov byte [esp + 4], 0x65
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x62
mov byte [esp + 7], 0x76
mov byte [esp + 8], 0x68
mov byte [esp + 9], 0x64
mov byte [esp + 0xa], 0
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40dcc2
mov ecx, dword [esp + 0xc]
xor ecx, esp
xor eax, eax
call fcn.004164fa
add esp, 0x10
ret

Function at 0x40dce0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push esi
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x40dd44
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x80090016
jne 0x40dd39
push 8
push 1
push 0
push esi
lea ecx, [esp + 0x1c]
push ecx
call edi
test eax, eax
jne 0x40dd39
call ebx
push eax
push str.CryptAcquireContext_error___d_n
call fcn.0040e270
add esp, 8
mov eax, dword [esp + 0xc]
pop ebx
pop edi
pop esi
pop ecx
ret 4
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 4

Function at 0x40dd50
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0
push 0
push 0x8003
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40ddc2
mov edx, dword [esp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dd80
push 0
sub eax, esi
push eax
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
pop esi
test eax, eax
jne 0x40ddd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptHashData_error___d_n
call fcn.0040e180
mov eax, dword [esp + 8]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptCreateHash_error___d_n
call fcn.0040e180
add esp, 8
mov eax, dword [esp]
pop ecx
ret 8

Function at 0x40dde0
Capabilities:
Encrypt data using rc4 via winapi

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x800000
push ecx
push 0x6801
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x40de1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptDeriveKey_error___d_n
call fcn.0040e180
add esp, 8
mov eax, dword [esp]
pop ecx
ret 8
Function at 0x40de30
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebx
push ebp
push esi
push edi
push str.CryptAPIContainer
mov esi, ecx
xor ebp, ebp
call fcn.0040dce0
mov edi, eax
lea eax, [esi + 0xc]
push eax
push edi
mov ecx, esi
call fcn.0040dd50
mov ebx, eax
push ebx
push edi
mov ecx, esi
call fcn.0040dde0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebp
push 1
mov esi, eax
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x40de7d
mov ebp, 1
jmp 0x40de91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptDecrypt_error___d_n
call fcn.0040e270
add esp, 8
test esi, esi
je 0x40de9c
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test ebx, ebx
je 0x40dea7
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test edi, edi
je 0x40deb4
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 8
Function at 0x40dec0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40df1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error___d__CryptAcquireConext_failed._n
call fcn.0040e270
add esp, 8
jmp 0x40e02e
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x8004
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40df51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error___d__CryptCreateHash_failed._n
call fcn.0040e270
add esp, 8
jmp 0x40e021
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
push 0
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40df99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error___d__CryptHashData_failed._n
call fcn.0040e270
mov eax, dword [esp + 0x10]
add esp, 8
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x40e02e
mov ecx, dword [esp + 0xc]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 2
push ecx
mov dword [esp + 0x24], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40e002
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40dfd5
push eax
lea edx, [esp + 0x18]
push edx
push edi
call fcn.00416d60
add esp, 0xc
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004164fa
add esp, 0x24
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error___d__CryptGetHashParam_failed._n
call fcn.0040e270
mov edx, dword [esp + 0x14]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004164fa
add esp, 0x24
ret 0xc
Function at 0x40e180
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3014
call fcn.004169a0
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x3010], eax
cmp byte [0x432f64], 0
jne 0x40e1ae
cmp byte [0x432f65], 0
je 0x40e254
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.0041874e
add esp, 0x30
cmp byte [0x432f64], 0
je 0x40e254
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x3010]
xor ecx, esp
call fcn.004164fa
add esp, 0x3014
ret

Function at 0x40e270
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4014
call fcn.004169a0
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x4010], eax
cmp byte [0x432f64], 0
jne 0x40e29e
cmp byte [0x432f65], 0
je 0x40e326
mov ecx, dword [esp + 0x4018]
lea eax, [esp + 0x401c]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x400
push edx
call fcn.00418896
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 [0x432f64], 0
je 0x40e326
lea ecx, [esp + 0x2010]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x4010]
xor ecx, esp
call fcn.004164fa
add esp, 0x4014
ret
Function at 0x40e840
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 0x40e897
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadIniFileA___File_Open_failed____ld_n
call fcn.0040e180
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 0x40e8cc
push str.LoadIniFileA___File_size_is_too_small_n
call fcn.0040e180
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.0041698c
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
jne 0x40e8fd
push str.LoadIniFileA___Memory_allocation_error._n
call fcn.0040e180
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 0x40e910
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 0x40e96a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadIniFileW___File_Open_failed____ld____s__n
call fcn.0040e270
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 0x40e9a0
push str.LoadIniFileW___File_size_is_too_small_n
call fcn.0040e270
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.0041698c
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
jne 0x40e9d1
push str.LoadIniFileW___Memory_allocation_error._n
call fcn.0040e270
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 0x40e9e0
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 0x40ea28
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 0x40ea1e
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