joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4580c6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x49afa0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x49b8f0]
je 0x4580fb
inc eax
cmp eax, 0x13
jb 0x4580ec
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x49b8f0]
jne 0x458221
mov eax, dword [0x49eb78]
cmp eax, 1
je 0x4581f9
cmp eax, edx
jne 0x45812b
cmp dword [0x49afe4], 1
je 0x4581f9
cmp ecx, 0xfc
je 0x458221
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x458161
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00452c60
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0044b9e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x458195
mov eax, edi
push eax
call fcn.0044b9e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x483cd4
push edi
call fcn.00451790
add esp, 0x10
push edi
call fcn.0044b9e0
push dword [esi + 0x49b8f4]
mov ebx, eax
call fcn.0044b9e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044a400
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00452c60
push edi
push ebx
call fcn.00452c70
push 0x483cd0
push ebx
call fcn.00452c70
push dword [esi + 0x49b8f4]
push ebx
call fcn.00452c70
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0045bad8
add esp, 0x2c
jmp 0x458221
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x49b8f4]
push dword [esi]
call fcn.0044b9e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004497f7
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x45a2f7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x49afa0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x45a328
xor eax, eax
jmp 0x45a4b1
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x49f320]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x45a364
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0045f391
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x45a43f
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x45a47d
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x45a3c8
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45a3b9
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x45a399
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45a408
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x45a411
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x45a38a
jmp 0x45a413
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x45a4ac
cmp dword [ebp - 0x6c], edi
je 0x45a47d
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x45a472
call fcn.0044d3bc
mov dword [eax], 9
call fcn.0044d3c5
mov dword [eax], esi
jmp 0x45a4a7
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45a467
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x45a413
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x45a413
push dword [ebp - 0x6c]
call fcn.0044d3ce
pop ecx
jmp 0x45a4a7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45a495
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x45a495
xor eax, eax
jmp 0x45a4af
call fcn.0044d3bc
mov dword [eax], 0x1c
call fcn.0044d3c5
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x45a4af
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004497f7
add ebp, 0x3a0
leave
ret
Function at 0x45a6c7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x45a89b
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x49f320]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x45a89b
test cl, 0x48
je 0x45a732
cmp byte [eax + 5], 0xa
je 0x45a732
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45a784
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x45a76c
call fcn.0044d3bc
mov dword [eax], 9
call fcn.0044d3c5
mov dword [eax], esi
jmp 0x45a77c
cmp eax, 0x6d
je 0x45a89b
push eax
call fcn.0044d3ce
pop ecx
or eax, 0xffffffff
jmp 0x45a89d
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x45a896
test eax, eax
je 0x45a7ab
cmp byte [ebx], 0xa
jne 0x45a7ab
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x45a7b4
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x45a890
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x45a880
cmp al, 0xd
je 0x45a7e6
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x45a872
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x45a800
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x45a7fb
add dword [ebp + 0x10], 2
jmp 0x45a854
mov dword [ebp + 0x10], eax
jmp 0x45a86e
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45a828
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45a86e
cmp dword [ebp - 0xc], 0
je 0x45a86e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x45a849
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x45a854
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x45a871
cmp ebx, dword [ebp + 0xc]
jne 0x45a859
cmp byte [ebp - 1], 0xa
jne 0x45a859
mov byte [ebx], 0xa
jmp 0x45a871
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045b951
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x45a872
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x45a7ca
jmp 0x45a890
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x45a890
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x45a89d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45bad8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x49f054], ebx
push esi
push edi
jne 0x45bb58
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45bb93
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48980c
push edi
call esi
test eax, eax
mov dword [0x49f054], eax
je 0x45bb93
push 0x4897fc
push edi
call esi
push 0x4897e8
push edi
mov dword [0x49f058], eax
call esi
cmp dword [0x49ebd4], 2
mov dword [0x49f05c], eax
jne 0x45bb58
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x49f064], eax
je 0x45bb58
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x49f060], eax
mov eax, dword [0x49f060]
test eax, eax
je 0x45bb9d
call eax
test eax, eax
je 0x45bb84
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x49f064]
test eax, eax
je 0x45bb84
test byte [ebp - 8], 1
jne 0x45bb9d
cmp dword [0x49ebe0], 4
jb 0x45bb97
or byte [ebp + 0x12], 0x20
jmp 0x45bbbc
xor eax, eax
jmp 0x45bbcc
or byte [ebp + 0x12], 4
jmp 0x45bbbc
mov eax, dword [0x49f058]
test eax, eax
je 0x45bbbc
call eax
mov ebx, eax
test ebx, ebx
je 0x45bbbc
mov eax, dword [0x49f05c]
test eax, eax
je 0x45bbbc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x49f054]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4600f8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044a400
mov eax, dword [0x49afa0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0045b951
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x46022b
push 2
push esi
push dword [ebp + 8]
call fcn.0045b951
add esp, 0xc
cmp eax, ebx
je 0x46022b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4601cb
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0044bea0
push 0x8000
push dword [ebp + 8]
call fcn.0046152b
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x460181
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0045a2f7
add esp, 0xc
cmp eax, 0xffffffff
je 0x4601a1
sub edi, eax
test edi, edi
jg 0x460179
jmp 0x4601b9
call fcn.0044d3c5
cmp dword [eax], 5
jne 0x4601b6
call fcn.0044d3bc
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0046152b
pop ecx
pop ecx
jmp 0x460213
jge 0x460213
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045b951
push dword [ebp + 8]
call fcn.0044debe
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x460213
call fcn.0044d3bc
mov dword [eax], 0xd
call fcn.0044d3c5
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0045b951
add esp, 0xc
mov eax, esi
pop edi
jmp 0x46022d
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004497f7
leave
ret
Function at 0x4610e6
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4610ff
or eax, 0xffffffff
jmp 0x461160
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x46115c
push 0x3d
push esi
call fcn.0044d226
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x46115c
cmp esi, eax
je 0x46115c
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x49ebf4]
sete cl
cmp eax, dword [0x49ebf8]
mov dword [ebp - 8], ecx
jne 0x461142
mov edi, eax
call fcn.00461085
mov dword [0x49ebf4], eax
cmp eax, ebx
jne 0x46119b
cmp dword [ebp + 0xc], ebx
je 0x461164
cmp dword [0x49ebfc], ebx
je 0x461164
call fcn.0045ff41
test eax, eax
je 0x46119b
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x46116d
xor eax, eax
jmp 0x46115f
push 4
call fcn.0044991d
cmp eax, ebx
pop ecx
mov dword [0x49ebf4], eax
je 0x46115c
mov dword [eax], ebx
cmp dword [0x49ebfc], ebx
jne 0x46119b
push 4
call fcn.0044991d
cmp eax, ebx
pop ecx
mov dword [0x49ebfc], eax
je 0x46115c
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x49ebf4]
call fcn.00461038
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4611fc
cmp dword [esi], ebx
je 0x4611fc
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00449805
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4611df
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x46123d
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4611d6
mov eax, edi
shl eax, 2
push eax
push dword [0x49ebf4]
call fcn.0044b4c9
cmp eax, ebx
pop ecx
pop ecx
je 0x46123d
jmp 0x461238
cmp dword [ebp - 8], ebx
jne 0x4612a8
cmp edi, ebx
jge 0x46120b
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x49ebf4]
call fcn.0044b4c9
cmp eax, ebx
pop ecx
pop ecx
je 0x46115c
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x49ebf4], eax
cmp dword [ebp + 0xc], ebx
je 0x461292
push dword [ebp - 4]
call fcn.0044b9e0
inc eax
inc eax
push eax
call fcn.0044991d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x461292
push dword [ebp - 4]
push esi
call fcn.00452c60
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x46128b
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00449805
pop ecx
cmp dword [ebp - 8], ebx
je 0x4612a0
push dword [ebp - 4]
call fcn.00449805
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x46115f
push dword [ebp - 4]
call fcn.00449805
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x461169
Function at 0x4612bb
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x48a938
call fcn.0044d2b8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x49f0e4], edi
jne 0x4612ff
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4612ea
mov dword [0x49f0e4], ebx
jmp 0x4612ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4612ff
mov dword [0x49f0e4], 2
mov eax, dword [0x49f0e4]
cmp eax, ebx
jne 0x46131f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4613e2
cmp eax, 2
je 0x461328
cmp eax, edi
jne 0x461350
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x46133b
mov eax, dword [0x49f044]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x461357
xor eax, eax
jmp 0x4613e2
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0044a400
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x46138a
cmp esi, edi
jne 0x4613a0
push dword [ebp - 0x20]
call fcn.0044991d
pop ecx
mov esi, eax
cmp esi, edi
je 0x461350
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4613d3
cmp dword [ebp + 0x14], edi
jne 0x4613bd
push edi
push edi
jmp 0x4613c3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4613df
push esi
call fcn.00449805
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0044d2f3
ret
Function at 0x4613eb
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x48a948
call fcn.0044d2b8
xor esi, esi
cmp dword [0x49f0e8], esi
jne 0x46142f
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46141a
mov dword [0x49f0e8], edi
jmp 0x46142f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x46142f
mov dword [0x49f0e8], 2
mov eax, dword [0x49f0e8]
cmp eax, 2
je 0x461510
cmp eax, esi
je 0x461510
cmp eax, 1
jne 0x461474
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x46145d
mov eax, dword [0x49f044]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x46147b
xor eax, eax
jmp 0x461522
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0044a400
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4614b1
cmp edi, esi
jne 0x4614cc
lea eax, [ebx + ebx]
push eax
call fcn.0044991d
pop ecx
mov edi, eax
cmp edi, esi
je 0x461474
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4614ff
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4614e9
push esi
push esi
jmp 0x4614ef
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x46150b
push edi
call fcn.00449805
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x461522
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0044d2f3
ret
Function at 0x467ea5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x467ee8
call fcn.00472125
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x467ee8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x467f03
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0046700a
test ebx, ebx
mov esi, eax
je 0x467f01
test edi, edi
je 0x467f01
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4687bf
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x479bc0
call fcn.0044cf7c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4687d9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x468825
call fcn.0046990a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401260
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x46973f
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.0044bea0
add esp, 0xc
call fcn.00472115
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x46980f
cmp dword [ebp - 8], ebx
je 0x46980a
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x469611
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0044d19b
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x469819
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x4697e2
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x4697fc
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x469814
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x46981b
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x469819
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x469fac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x469fe3
call fcn.00472125
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x469ff4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x46a02d
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x46a012
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x46a01a
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x46a02b
test ax, ax
jne 0x46a02b
test si, si
je 0x46a02d
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x46a03c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret