joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4570a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x4570c5
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x4570dd
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [esi + ebp]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x45710b
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [edi + eax - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x45714a
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x45721e
sub edx, 0x10000
js 0x45721e
movzx eax, word [esi + ecx - 1]
cmp eax, ebx
jne 0x457130
mov eax, dword [esp + 4]
movzx eax, word [eax + ecx]
cmp eax, dword [esp + 0x10]
jne 0x457130
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [edi + eax + 0x108]
lea esi, [esi + eax + 0x108]
mov eax, dword [esi + edx]
xor eax, dword [edi + edx]
jne 0x4571a1
mov eax, dword [esi + edx + 4]
xor eax, dword [edi + edx + 4]
jne 0x45719e
add edx, 8
jne 0x457185
jmp 0x45720f
add edx, 4
test eax, 0xffff
jne 0x4571ae
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edi + edx]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x45720f
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x4571e2
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x457130
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x45721e
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi + eax - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x457130
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x45722f
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x470010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47003d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47003d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4704e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4a6a04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x58]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
call fcn.0040ba80
push esi
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040b820
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x470557
xor bl, bl
jmp 0x47066d
xor edx, edx
lea ecx, [ebp - 0x88]
call fcn.0040bba0
mov byte [ebp - 4], 2
mov eax, 0x7fffffff
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x4706f5
cmp dword [edi + 0x14], 0x10
jb 0x470583
mov edi, dword [edi]
push 4
push str..lnk
push ecx
push edi
push ecx
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x70]
call fcn.0040ea50
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x40]
call fcn.0040b820
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
push ebx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040bc90
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
mov bl, al
cmp ecx, 0x10
jb 0x4705fa
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4705f1
mov edx, dword [eax - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4706fa
push edx
call fcn.0044efd0
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x47063b
mov ecx, dword [ebp - 0x70]
inc eax
mov edx, ecx
cmp eax, 0x1000
jb 0x470632
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4706fa
push ecx
call fcn.0044efd0
add esp, 4
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x47066d
mov ecx, dword [ebp - 0x88]
inc eax
mov edx, ecx
cmp eax, 0x1000
jb 0x470664
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4706fa
push ecx
call fcn.0044efd0
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x470698
mov ecx, dword [ebp - 0x28]
inc eax
mov edx, ecx
cmp eax, 0x1000
jb 0x47068f
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4706fa
push ecx
call fcn.0044efd0
add esp, 4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x4706d5
mov ecx, dword [ebp - 0x58]
inc eax
mov edx, ecx
cmp eax, 0x1000
jb 0x4706cc
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4706fa
push ecx
call fcn.0044efd0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455d51
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040a700
call fcn.0045d555
int3
Function at 0x475320
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x47534e
cmp byte [esi + 5], 0
je 0x475340
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 5], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 1
lea eax, [ebp - 0x20]
mov byte [esi + 4], 0
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x47538d
mov eax, dword [eax]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
test eax, eax
jne 0x4753a9
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4753ba
mov byte [esi + 4], 1
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x475510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
call fcn.00475c80
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 0x10
jb 0x475528
mov ebx, dword [ebx]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0x10
jb 0x475533
mov esi, dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov dword [edi + 0x10], esi
test esi, esi
je 0x4755a7
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [edi + 0x14], eax
test eax, eax
je 0x4755a7
mov esi, dword [edi + 0x10]
push 0
mov byte [edi + 0x4c], 3
call ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [edi + 0x14]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [edi + 0x20]
add ecx, eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov al, 1
mov dword [edi + 0x48], ecx
mov byte [edi + 0x4d], 0
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x475830
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47a8ed
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x475873
push ecx
push dword [ebp + 0xc]
call fcn.00475d00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00475c80
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.0040cd70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00419ee0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebx + 4]
mov edi, dword [ebp - 0x2c]
lea ebx, [ebp - 0x2c]
cmovae ebx, edi
mov dword [ebp + 0xc], eax
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [ebp - 0x1c], ecx
jbe 0x4758cd
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebp - 0x1c]
jb 0x4758b8
mov eax, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00419bd0
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x4758ea
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx + 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 8]
jne 0x47595d
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x47592f
inc eax
mov ecx, edi
cmp eax, 0x1000
jb 0x475926
mov edi, dword [ecx - 4]
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x475a22
push edi
call fcn.0044efd0
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
add ebx, 0x20
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x475993
inc eax
mov ecx, edi
cmp eax, 0x1000
jb 0x47598a
mov edi, dword [ecx - 4]
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x475a22
push edi
call fcn.0044efd0
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4759e5
mov ecx, dword [ebx + 0x4c]
lea edi, [esi + 0x44]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], 0
call fcn.00475060
mov ecx, dword [ebp + 8]
push edi
push ebx
mov dword [edi], eax
call fcn.004774b0
test al, al
jne 0x4759fa
push dword [edi]
call fcn.0044efd0
add esp, 4
mov dword [edi], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [edi]
mov eax, dword [esi + 0x20]
add eax, ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x48], eax
mov al, 1
mov word [esi + 0x4c], 0x102
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0045d555
int3
Function at 0x475b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je case.0x475ba2.0
movzx ecx, byte [edi + 0x4c]
xor eax, eax
cmp ecx, 4
ja case.default.0x475ba2
jmp dword [ecx*4 + 0x475c6c]
mov ebx, dword [edi + 0x28]
xor eax, eax
mov ecx, dword [edi + 0x38]
mov edx, esi
add edx, ebx
adc eax, dword [edi + 0x2c]
cmp eax, dword [edi + 0x3c]
jb 0x475bc7
ja 0x475bc3
cmp edx, ecx
jbe 0x475bc7
mov esi, ecx
sub esi, ebx
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.0x475ba2.0
mov eax, dword [ebp + 0xc]
add dword [edi + 0x28], eax
adc dword [edi + 0x2c], 0
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x48]
lea eax, [ecx + esi]
cmp eax, edx
jbe 0x475c04
mov esi, edx
sub esi, ecx
push esi
push ecx
push dword [ebp + 8]
call fcn.00458480
add esp, 0xc
mov eax, esi
add dword [edi + 0x40], esi
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [edi + 0x28]
xor eax, eax
mov edx, dword [edi + 0x38]
mov ebx, esi
add ebx, ecx
adc eax, dword [edi + 0x2c]
cmp eax, dword [edi + 0x3c]
jb 0x475c3d
ja 0x475c37
cmp ebx, edx
jbe 0x475c3d
mov esi, edx
sub esi, ecx
je case.0x475ba2.0
push esi
push ecx
mov ecx, dword [edi + 0x18]
call fcn.004180e0
push eax
push dword [ebp + 8]
call fcn.00458480
add esp, 0xc
mov eax, esi
add dword [edi + 0x28], esi
adc dword [edi + 0x2c], 0
pop edi
pop esi
pop ebx
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x475d00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.00475c80
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x475d16
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x475d45
mov dword [esi + 8], 0
xor al, al
pop esi
pop ebp
ret 8
lea ecx, [ebp + 8]
mov byte [esi + 0x4c], 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
xor ecx, ecx
add ecx, eax
mov al, 1
mov dword [esi + 0x20], ecx
adc edx, 0
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
pop esi
pop ebp
ret 8
Function at 0x476440
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a93d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x18], ebx
push edi
mov dword [ebx], vtable.CDialog.0
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x476485
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebx + 4], 0
call fcn.00415b60
mov ecx, ebx
mov dword [ebp - 0x10], ebx
shr ecx, 8
mov edi, eax
movzx edx, cl
mov eax, ebx
movzx ecx, bl
xor ecx, 0x811c9dc5
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
xor edx, ecx
imul ecx, edx, 0x1000193
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 0x20]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00418d00
mov edx, dword [eax + 4]
test edx, edx
je 0x476530
mov ecx, dword [edi + 0x38]
and ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x2c]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x47650f
cmp eax, edx
jne 0x476507
mov eax, dword [edi + 0x24]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x476517
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x476517
cmp eax, edx
jne 0x476517
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [edi + 0x28]
mov eax, dword [edx + 4]
push edx
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.0044efd0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ebx], vtable.CWindowBase.0
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477950
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ac45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
call fcn.0040cd70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00419ee0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [ebp - 0x1c], 0x10
lea edi, [ebp - 0x30]
mov esi, dword [ebp - 0x30]
lea eax, [ebx + 4]
mov ebx, dword [ebp - 0x20]
cmovae edi, esi
xor ecx, ecx
mov dword [ebp + 8], eax
mov edx, 0x811c9dc5
test ebx, ebx
je 0x4779c9
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x4779b5
mov eax, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.00419bd0
mov ebx, dword [ebp - 0x10]
mov edi, dword [eax + 4]
test edi, edi
jne 0x4779e6
mov edi, dword [ebx + 8]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
mov dword [ebp - 4], 2
cmp edi, eax
mov eax, dword [ebp - 0x1c]
setne bl
cmp eax, 0x10
jb 0x477a24
inc eax
mov ecx, esi
cmp eax, 0x1000
jb 0x477a1b
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x477a52
push esi
call fcn.0044efd0
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.0045d555
int3
Function at 0x402050
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5835d5
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x60c044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x61654c]
test eax, eax
jne 0x4020b1
push 0x1d4
call fcn.0041b454
add esp, 4
mov dword [ebp - 0xdc], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00409040
mov dword [ebp - 4], 0xffffffff
mov dword [0x61654c], eax
mov ecx, eax
call fcn.00426b0d
push eax
push 0x64
lea eax, [ebp - 0xd8]
push eax
push 0x5ff384
push 0x5ff2b8
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xd8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4020e0
sub eax, edx
sar eax, 1
cmp eax, 1
setg al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b443
mov esp, ebp
pop ebp
ret
Function at 0x402110
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583621
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x60c044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
call fcn.004028f0
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042d010
add esp, 8
lea eax, [ebp - 0x230]
push eax
call fcn.00402520
push esi
push 0x104
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push ecx
cmovae eax, dword [ebp - 0x230]
push 0x5ff384
push eax
push str.user
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x5ff384
lea eax, [ebp - 0x218]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4021d6
test dx, dx
je 0x4021d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4021d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4021b0
xor eax, eax
jmp 0x4021db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40226f
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], eax
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push ecx
cmovae eax, dword [ebp - 0x230]
push eax
push ecx
call fcn.00402320
lea ecx, [ebp - 0x248]
test al, al
jne 0x402236
call fcn.00403780
xor bl, bl
jmp 0x4022d9
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x248]
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x402250
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], al
call fcn.00403780
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00402720
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 2
cmp edi, eax
je 0x40229c
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00403210
mov eax, dword [ebp - 0x24c]
mov bl, 1
cmp eax, 8
jb 0x4022bc
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4022f7
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00403830
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b443
mov esp, ebp
pop ebp
ret 8
Function at 0x402980
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583715
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x60c044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x61654c]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x4029e5
push 0x1d4
call fcn.0041b454
add esp, 4
mov dword [ebp - 0xdc], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00409040
mov dword [ebp - 4], 0xffffffff
mov dword [0x61654c], eax
mov ecx, eax
call fcn.00426b0d
push eax
push 0x64
lea eax, [ebp - 0xd8]
push eax
push 0x5ff384
push 0x5ff2b8
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0xd8], 0
jne 0x402a19
xor ecx, ecx
jmp 0x402a31
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a22
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xd8]
mov ecx, esi
push eax
call fcn.00403620
cmp dword [esi + 0x10], 0
seta al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b443
mov esp, ebp
pop ebp
ret 4

Function at 0x404aa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583812
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60c044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x60]
mov dword [esi], vtable.CShareVariableManager.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x404aeb
mov eax, dword [ecx]
jmp 0x404aed
mov eax, ecx
xor edx, edx
mov word [eax], dx
mov dword [ebp - 4], edx
mov dword [esi + 0x8c], 7
mov dword [esi + 0x88], edx
cmp dword [esi + 0x8c], 8
jb 0x404b13
mov eax, dword [esi + 0x78]
jmp 0x404b16
lea eax, [esi + 0x78]
xor edx, edx
mov word [eax], dx
lea eax, [esi + 0x90]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edx
cmp dword [eax + 0x14], 8
jb 0x404b33
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
lea eax, [esi + 0xa8]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edx
cmp dword [eax + 0x14], 8
jb 0x404b50
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
mov byte [ebp - 4], 3
push edx
push 0x5ff384
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], edx
mov dword [esi + 0x5c], edx
call fcn.00403620
push 0
push 0x5ff384
lea ecx, [esi + 0x78]
call fcn.00403620
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret