joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f010
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push 0
cmp dword [esi + 0x28], 0xffffffff
jne 0x47f03a
push 0x5d
push str.FileStreamFromFile.cpp
call fcn.0043bc90
add esp, 0x10
mov eax, 0x80004005
pop esi
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x14]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x47f180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push 0
test ecx, ecx
jne 0x47f1a5
push ecx
push 0x36
push str.FileStreamFromFile.cpp
call fcn.0043bc90
add esp, 0x10
mov eax, 0x80070057
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp eax, 0xffffffff
jne 0x47f1ca
push 0
push 0x37
push str.FileStreamFromFile.cpp
call fcn.0043bc90
add esp, 0x10
mov eax, 0x80004005
pop ebp
ret 0x10
lea edx, [ebp + 0xc]
push edx
push dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47f1c1
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x47f1e9
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret 0x10

Function at 0x47fe20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x47fe2c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0047fe40
Function at 0x543a38
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 9
je 0x543a45
xor eax, eax
jmp 0x543a70
push dword [ecx + 4]
call fcn.005505e0
pop ecx
test eax, eax
je 0x543a5d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x4c]
test al, 2
jne 0x543a41
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor eax, 0x8000
shr eax, 0xf
pop ebp
ret 4

Function at 0x543b7b
Capabilities:
Log keystrokes via polling

Disassembly:
push 4
mov eax, 0x5b403d
call fcn.0053f6ab
mov ebx, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.00543a38
test eax, eax
je 0x543bb3
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 0x8000
mov ecx, ebx
push eax
call fcn.00543491
xor eax, eax
inc eax
jmp 0x543cab
push dword [ebx + 4]
call fcn.005505e0
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
test esi, esi
je 0x543c5f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
test eax, eax
je 0x543c5f
cmp edi, 0x25
je 0x543bec
cmp edi, 0x27
je 0x543bfa
cmp edi, 0x26
je 0x543bec
cmp edi, 0x28
jne 0x543c5f
cmp edi, 0x27
je 0x543bfa
cmp edi, 0x28
je 0x543bfa
push 2
jmp 0x543bfc
push 3
pop edi
jmp 0x543c0a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
test eax, eax
jne 0x543c49
push edi
mov ecx, esi
call fcn.00545b17
mov esi, eax
test esi, esi
jne 0x543bff
mov ecx, dword [ebp - 0x10]
cmp edi, 3
setne al
push eax
call fcn.00545bda
mov ecx, eax
jmp 0x543c39
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
test eax, eax
jne 0x543c49
push edi
mov ecx, esi
call fcn.00545b17
mov esi, eax
test esi, esi
jne 0x543c2b
jmp 0x543bab
push 0
mov ecx, esi
call fcn.00545b13
push eax
mov ecx, ebx
call fcn.00543ee9
jmp 0x543bab
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
and eax, 0x8000
push eax
push 0x12
call esi
and eax, 0x8000
push eax
push 0x11
call esi
and eax, 0x8000
lea ecx, [ebp + 8]
push eax
push edi
call fcn.005568c2
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00543cb3
neg eax
lea ecx, [ebp + 8]
sbb esi, esi
neg esi
call fcn.004041e0
mov eax, esi
call fcn.0053f685
ret 4

Function at 0x5469d3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
push dword [ebp + 0x10]
lea eax, [esi + 0x5c]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x546a3f
push edi
push 1
push 2
xor edi, edi
mov ecx, esi
push edi
call fcn.005463e4
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x546a26
cmp word [eax], di
je 0x546a26
push 1
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x546a3e
cmp dword [esi + 0x50], edi
jne 0x546a37
mov eax, dword [esi + 0x54]
cmp dword [eax - 0xc], edi
je 0x546a3e
test eax, eax
je 0x546a3e
mov ecx, esi
call fcn.00546550
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x54ae9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
call fcn.0054b00e
mov ebx, eax
test ebx, ebx
je 0x54af0b
push edi
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x54aeef
cmp dword [ebp + 0x14], edi
jae 0x54aed4
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x54aeef
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x54aeef
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x54aef3
xor eax, eax
jmp 0x54af0a
push edi
push eax
push dword [ebp + 0x10]
call fcn.0057e890
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x556a31
Capabilities:
Log keystrokes

Disassembly:
push 4
mov eax, 0x5b50f5
call fcn.0053f6ab
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
call fcn.00404520
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.00404210
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
movzx edx, cx
mov dword [ebp - 0x10], 1
cmp edx, 0x24
ja 0x556ac4
je 0x556aba
mov eax, edx
sub eax, 0xd
je 0x556ab0
sub eax, 0xe
je 0x556aa6
sub eax, 6
je 0x556a9c
sub eax, 1
je 0x556a92
sub eax, 1
jne 0x556af3
push 0x6427bc
jmp 0x556be8
push str.PageDown
jmp 0x556be8
push str.PageUp
jmp 0x556be8
push 0x642770
jmp 0x556be8
push str.Enter
jmp 0x556be8
push str.Home
jmp 0x556be8
mov eax, edx
sub eax, 0x25
je 0x556be3
sub eax, 1
je 0x556bdc
sub eax, 1
je 0x556bd5
sub eax, 1
je 0x556bce
sub eax, 5
je 0x556bc7
cmp cx, 0x30
jb 0x556aff
cmp cx, 0x39
jbe 0x556b08
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x556b1b
xor eax, eax
mov word [ebp + 0xc], cx
mov word [ebp + 0xe], ax
lea eax, [ebp + 0xc]
push eax
jmp 0x556be8
lea eax, [ecx - 0x60]
cmp ax, 9
ja 0x556b2f
lea eax, [edx - 0x60]
push eax
push str.Num__d
jmp 0x556b71
cmp cx, 0x6a
jne 0x556b3f
push 0x642808
jmp 0x556be8
cmp cx, 0x6b
jne 0x556b4f
push str.Num_
jmp 0x556be8
cmp cx, 0x6e
jne 0x556b5f
push str.Num_Del
jmp 0x556be8
lea eax, [ecx - 0x70]
cmp ax, 0xb
ja 0x556b7c
lea eax, [edx - 0x6f]
push eax
push 0x642830
push esi
call fcn.00405150
add esp, 0xc
jmp 0x556bef
push 2
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, al
movsx eax, cl
cmp eax, 0x3d
jg 0x556ba7
je 0x556bb6
cmp eax, 0x27
je 0x556bb6
cmp eax, 0x2b
jle 0x556bef
cmp eax, 0x2f
jle 0x556bb6
cmp eax, 0x3b
je 0x556bb6
jmp 0x556bef
cmp eax, 0x5b
jl 0x556bef
cmp eax, 0x5d
jle 0x556bb6
cmp eax, 0x60
jne 0x556bef
movsx ax, cl
mov ecx, esi
movzx eax, ax
push eax
call fcn.0042ff40
jmp 0x556bef
push str.Insert
jmp 0x556be8
push str.Down
jmp 0x556be8
push str.Right
jmp 0x556be8
push 0x642784
jmp 0x556be8
push str.Left
mov ecx, esi
call fcn.00404c10
mov eax, esi
call fcn.0053f685
ret 8
Function at 0x55e8b1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, edi
sub eax, 9
je 0x55e922
sub eax, 1
je 0x55e904
sub eax, 3
je 0x55e904
sub eax, 0x13
je 0x55e8f9
test dword [esi + 0x3a8], 0x2000
je 0x55e93d
push edi
call fcn.005947d4
pop ecx
test eax, eax
jne 0x55e93d
cmp edi, 0x2d
je 0x55e93d
cmp edi, 0x2e
je 0x55e93d
cmp edi, 0x2c
je 0x55e93d
jmp 0x55e958
test byte [esi + 0x3a8], 0x20
jne 0x55e958
jmp 0x55e93d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x55e93d
test dword [esi + 0x3a8], 0x1000
jmp 0x55e93b
test byte [esi + 0x3ac], 0x80
jne 0x55e93d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x55e958
mov eax, dword [esi + 0x3d4]
push 0
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x4c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x55ec81
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xd
push esi
mov esi, ecx
jne 0x55ec97
mov dword [esi + 0x3b4], 1
cmp dword [ebp + 8], 0x20
jne 0x55ecaf
test byte [esi + 0x3a8], 0x20
je 0x55ecd7
push 0
call fcn.005475e9
jmp 0x55ecf2
cmp dword [ebp + 8], 0xd
jne 0x55ecd7
test dword [esi + 0x3a8], 0x1000
jne 0x55ecd7
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x55ecd7
mov ecx, esi
jmp 0x55eca6
mov eax, dword [esi + 0x3d4]
push 0
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x4c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop esi
pop ebp
ret 0xc

Function at 0x56fc88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, ecx
push edi
push 0x12
call esi
push 0x11
mov edi, eax
call esi
and eax, 0x8000
push 0x10
mov dword [ebp - 4], eax
call esi
mov ecx, dword [ebp - 4]
and eax, 0x8000
and edi, 0x8000
jne 0x56fcea
test ecx, ecx
jne 0x56fcd0
test eax, eax
jne 0x56fcc8
inc eax
jmp 0x56fd1f
push 2
xor ecx, ecx
pop eax
inc ecx
jmp 0x56fd1f
test eax, eax
jne 0x56fcdb
push 4
pop eax
push 2
jmp 0x56fd1e
push 3
pop eax
push 0x10
mov word [ebx + 0x18c], ax
pop eax
jmp 0x56fd26
test ecx, ecx
jne 0x56fcfd
test eax, eax
jne 0x56fcf9
push 8
pop eax
push 4
jmp 0x56fd1e
test ecx, ecx
je 0x56fd0c
test eax, eax
jne 0x56fd08
push 0x40
pop eax
push 6
jmp 0x56fd1e
test ecx, ecx
jne 0x56fd17
test eax, eax
je 0x56fd17
push 0x20
pop eax
push 5
jmp 0x56fd1e
mov eax, 0x80
push 7
pop ecx
mov word [ebx + 0x18c], cx
test word [ebx + 0x190], ax
je 0x56fd3d
mov ax, word [ebx + 0x192]
mov word [ebx + 0x18c], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5711b3
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x571228
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x5711f2
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x571226
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [edi]
push ecx
mov ecx, dword [ecx - 0xc]
inc ecx
push ecx
push eax
call fcn.00590354
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x571809
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
push 1
mov edi, ecx
call fcn.005713ca
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x571821
pop edi
ret
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x57184d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00571859
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, edi
call fcn.005725e6
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop esi
inc eax
pop edi
ret

Function at 0x57947c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x579546
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x579545
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5794d8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
jne 0x5794dc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x579544
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push dword [ebp + 8]
push eax
call fcn.0057e890
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp + 0xc]
xor edi, edi
push eax
push 1
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push edi
push dword [ebp + 0xc]
call fcn.00579153
mov ebx, dword [ebp - 4]
pop ecx
pop ecx
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, ebx
call fcn.00579d7c
xor eax, eax
cmp dword [ebx + 8], edi
setne al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x59da77
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059d73a
Function at 0x59da82
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059d8bb

Function at 0x5a6362
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a6022
Function at 0x403eb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c46b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x918
push edi
cmp dword [ebp + 8], 0
je 0x40416e
mov al, byte [0x491b47]
mov byte [ebp - 0x51c], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x51b]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x51c]
push ecx
call fcn.00404180
add esp, 4
lea ecx, [ebp - 0x410]
call fcn.00407a10
mov dword [ebp - 4], 0
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp + 8]
call fcn.0047f7fa
push 0x491b44
push 0x491b40
lea ecx, [ebp - 0x410]
call fcn.00404820
push 0x491b3c
push 0x491b38
lea ecx, [ebp - 0x410]
call fcn.00404820
mov al, byte [0x491b47]
mov byte [ebp - 0x40c], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x51c]
push ecx
push 0x400
lea edx, [ebp - 0x40c]
push edx
lea ecx, [ebp - 0x410]
call fcn.0040ee50
push eax
lea ecx, [ebp - 0x410]
call fcn.0040ee50
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx eax, byte [ebp - 0x40c]
test eax, eax
je 0x40401a
lea ecx, [ebp - 0x410]
call fcn.0040ee50
push eax
lea ecx, [ebp - 0x40c]
push ecx
call fcn.0046b110
add esp, 8
test eax, eax
je 0x40401a
lea edx, [ebp - 0x40c]
push edx
lea ecx, [ebp - 0x410]
call fcn.00407b00
push 0x491b40
push 0x491b44
lea ecx, [ebp - 0x410]
call fcn.00404820
push 0x491b38
push 0x491b3c
lea ecx, [ebp - 0x410]
call fcn.00404820
lea ecx, [ebp - 0x410]
call fcn.0040ee50
push eax
mov ecx, dword [ebp + 8]
call fcn.00480d8f
push 5
mov ecx, dword [ebp + 8]
call fcn.004073b0
mov dword [ebp - 0x520], eax
cmp dword [ebp - 0x520], 0
je 0x40415c
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x520]
call fcn.0047f7fa
push 0x491b44
push 0x491b40
lea ecx, [ebp - 0x410]
call fcn.00404820
push 0x491b3c
push 0x491b38
lea ecx, [ebp - 0x410]
call fcn.00404820
mov cl, byte [0x491b47]
mov byte [ebp - 0x924], cl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x923]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x51c]
push edx
push 0x400
lea eax, [ebp - 0x924]
push eax
lea ecx, [ebp - 0x410]
call fcn.0040ee50
push eax
lea ecx, [ebp - 0x410]
call fcn.0040ee50
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx ecx, byte [ebp - 0x924]
test ecx, ecx
je 0x404144
lea ecx, [ebp - 0x410]
call fcn.0040ee50
push eax
lea edx, [ebp - 0x924]
push edx
call fcn.0046b110
add esp, 8
test eax, eax
je 0x404144
lea eax, [ebp - 0x924]
push eax
lea ecx, [ebp - 0x410]
call fcn.00407b00
push 0x491b40
push 0x491b44
lea ecx, [ebp - 0x410]
call fcn.00404820
push 0x491b38
push 0x491b3c
lea ecx, [ebp - 0x410]
call fcn.00404820
lea ecx, [ebp - 0x410]
call fcn.0040ee50
push eax
mov ecx, dword [ebp - 0x520]
call fcn.00480d8f
push 2
mov ecx, dword [ebp - 0x520]
call fcn.004073b0
mov dword [ebp - 0x520], eax
jmp 0x40402a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x410]
call fcn.00407ac0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404180
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x404]
push eax
mov ecx, 0x4b4490
call fcn.004042c0
mov dword [ebp - 0x40c], eax
mov ecx, dword [ebp - 0x40c]
call fcn.0040ee50
push eax
push 0x400
lea ecx, [ebp - 0x400]
push ecx
push 0x491b70
push 0x491b64
push 0x491b5c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x404]
call fcn.00407ac0
lea edx, [ebp - 0x408]
push edx
mov ecx, 0x4b4490
call fcn.00404220
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x410]
mov edx, dword [ecx]
push edx
push str._sLanguage_s.ini
mov eax, dword [ebp + 8]
push eax
call fcn.0046b198
add esp, 0x10
lea ecx, [ebp - 0x408]
call fcn.00407ac0
mov esp, ebp
pop ebp
ret

Function at 0x4044c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c48b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1114
call fcn.0046b3f0
push edi
mov dword [ebp - 0x1120], 0
mov al, byte [0x491b47]
mov byte [ebp - 0x111c], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x111b]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x111c]
push ecx
call fcn.00404180
add esp, 4
lea ecx, [ebp - 0x1010]
call fcn.00407a10
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x1010]
call fcn.00407b20
push 0x491b44
push 0x491b40
lea ecx, [ebp - 0x1010]
call fcn.00404820
push 0x491b3c
push 0x491b38
lea ecx, [ebp - 0x1010]
call fcn.00404820
lea eax, [ebp - 0x111c]
push eax
push 0x1000
lea ecx, [ebp - 0x100c]
push ecx
lea ecx, [ebp - 0x1010]
call fcn.0040ee50
push eax
lea ecx, [ebp - 0x1010]
call fcn.0040ee50
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x100c]
test edx, edx
je 0x4045b4
lea eax, [ebp - 0x100c]
push eax
lea ecx, [ebp - 0x1010]
call fcn.00407b00
push 0x491b40
push 0x491b44
lea ecx, [ebp - 0x1010]
call fcn.00404820
push 0x491b38
push 0x491b3c
lea ecx, [ebp - 0x1010]
call fcn.00404820
lea ecx, [ebp - 0x1010]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407a30
mov edx, dword [ebp - 0x1120]
or edx, 1
mov dword [ebp - 0x1120], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1010]
call fcn.00407ac0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40e010
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2118
call fcn.0046b3f0
push edi
mov al, byte [0x491b47]
mov byte [ebp - 0x2118], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x2117]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x2118]
push ecx
call fcn.00404180
add esp, 4
mov dl, byte [0x491b47]
mov byte [ebp - 0x2010], dl
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x200f]
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [ebp - 0x2010]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040ebc0
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x491b44
push 0x491b40
lea edx, [ebp - 0x2010]
push edx
call fcn.0040e170
add esp, 0xc
push 0x491b3c
push 0x491b38
lea eax, [ebp - 0x2010]
push eax
call fcn.0040e170
add esp, 0xc
mov cl, byte [0x491b47]
mov byte [ebp - 0x1008], cl
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x1007]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x2118]
push edx
push 0x1000
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2010]
push ecx
lea edx, [ebp - 0x2010]
push edx
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx eax, byte [ebp - 0x1008]
test eax, eax
je 0x40e118
lea ecx, [ebp - 0x1008]
push ecx
lea edx, [ebp - 0x2010]
push edx
call fcn.0046b260
add esp, 8
push 0x491b40
push 0x491b44
lea eax, [ebp - 0x2010]
push eax
call fcn.0040e170
add esp, 0xc
push 0x491b38
push 0x491b3c
lea ecx, [ebp - 0x2010]
push ecx
call fcn.0040e170
add esp, 0xc
lea edx, [ebp - 0x2010]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046b260
add esp, 8
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x410480
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2118
call fcn.0046b3f0
push edi
mov al, byte [0x491b47]
mov byte [ebp - 0x2118], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x2117]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x2118]
push ecx
call fcn.00404180
add esp, 4
mov dl, byte [0x491b47]
mov byte [ebp - 0x2010], dl
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x200f]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2010]
push ecx
call fcn.0046b260
add esp, 8
push 0x491b44
push 0x491b40
lea edx, [ebp - 0x2010]
push edx
call fcn.0040e170
add esp, 0xc
push 0x491b3c
push 0x491b38
lea eax, [ebp - 0x2010]
push eax
call fcn.0040e170
add esp, 0xc
mov cl, byte [0x491b47]
mov byte [ebp - 0x1008], cl
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x1007]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x2118]
push edx
push 0x1000
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2010]
push ecx
lea edx, [ebp - 0x2010]
push edx
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx eax, byte [ebp - 0x1008]
test eax, eax
je 0x41057f
lea ecx, [ebp - 0x1008]
push ecx
lea edx, [ebp - 0x2010]
push edx
call fcn.0046b260
add esp, 8
push 0x491b40
push 0x491b44
lea eax, [ebp - 0x2010]
push eax
call fcn.0040e170
add esp, 0xc
push 0x491b38
push 0x491b3c
lea ecx, [ebp - 0x2010]
push ecx
call fcn.0040e170
add esp, 0xc
lea edx, [ebp - 0x2010]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046b260
add esp, 8
pop edi
mov esp, ebp
pop ebp
ret