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

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x46420c]
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 + 0x4643c8]
je 0x42f7f0
inc eax
cmp eax, 0x13
jb 0x42f7e1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4643c8]
jne 0x42f916
mov eax, dword [0x467df0]
cmp eax, 1
je 0x42f8ee
cmp eax, edx
jne 0x42f820
cmp dword [0x464208], 1
je 0x42f8ee
cmp ecx, 0xfc
je 0x42f916
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 0x42f856
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004328a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042e750
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42f88a
mov eax, edi
push eax
call fcn.0042e750
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x457c60
push edi
call fcn.00437d40
add esp, 0x10
push edi
call fcn.0042e750
push dword [esi + 0x4643cc]
mov ebx, eax
call fcn.0042e750
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042e180
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004328a0
push edi
push ebx
call fcn.004328b0
push 0x457c40
push ebx
call fcn.004328b0
push dword [esi + 0x4643cc]
push ebx
call fcn.004328b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00437c3e
add esp, 0x2c
jmp 0x42f916
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4643cc]
push dword [esi]
call fcn.0042e750
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.0042b3a1
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x42fdde
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x46805c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x42fe27
call ebp
mov esi, eax
cmp esi, ebx
je 0x42fe0d
mov dword [0x46805c], 1
jmp 0x42fe2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42fe22
push 2
pop eax
mov dword [0x46805c], eax
jmp 0x42fe27
mov eax, dword [0x46805c]
cmp eax, 1
jne 0x42fe84
cmp esi, ebx
jne 0x42fe3f
call ebp
mov esi, eax
cmp esi, ebx
jne 0x42fe3f
xor eax, eax
jmp 0x42ff2b
cmp word [esi], bx
mov eax, esi
je 0x42fe54
inc eax
inc eax
cmp word [eax], bx
jne 0x42fe46
inc eax
inc eax
cmp word [eax], bx
jne 0x42fe46
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0042d47b
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x42fe77
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x42ff2b
push ebp
push esi
push edi
call fcn.0042e260
add esp, 0xc
jmp 0x42fe69
cmp eax, 2
je 0x42fe8d
cmp eax, ebx
jne 0x42fe38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x42fe38
cmp byte [ebp], bl
mov esi, ebp
je 0x42fec3
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x42fe38
push esi
add edi, eax
call fcn.0042e750
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x42fea0
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0042d47b
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x42ff3c
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x42ff1d
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x42ff32
push edi
call fcn.0042e750
push esi
lea edi, [edi + eax + 1]
call fcn.0042baa6
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x42fee3
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0042c5bd
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x42fe38
Function at 0x42ff48
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x468060]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x42ff88
call esi
test eax, eax
je 0x42ff6d
mov dword [0x468060], 1
jmp 0x42ff8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42ff84
mov dword [0x468060], 2
jmp 0x42ff96
xor eax, eax
jmp 0x42ffe4
cmp eax, 1
jne 0x42ff91
call esi
jmp 0x42ffe4
cmp eax, 2
jne 0x42ff84
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x42ffdc
lea eax, [esi + esi]
push eax
call fcn.0042d47b
mov ebp, eax
test ebp, ebp
pop ecx
je 0x42ffdc
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x42ffe0
push ebp
call fcn.0042c5bd
pop ecx
xor eax, eax
jmp 0x42ffe2
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4340ff
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43412d
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x434134
cmp ebx, dword [eax + 4]
jae 0x434134
xor eax, eax
jmp 0x434324
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x434145
xor eax, eax
inc eax
jmp 0x434323
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43415b
cmp ecx, edx
jae 0x4342a0
cmp dword [eax + 4], 0
je 0x434164
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43414c
cmp dword [ebp + 8], 0
je 0x434186
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4342a0
cmp eax, esi
jae 0x4342a0
mov eax, dword [0x4681f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4341ab
cmp dword [esi*4 + 0x4681f8], edi
je 0x4342a4
inc esi
cmp esi, eax
jl 0x434199
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x434320
cmp dword [ebp - 8], 0x1000000
jne 0x434320
test byte [ebp - 0xc], 0xcc
je 0x434229
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x434320
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x434320
cmp word [eax + 0x18], 0x10b
jne 0x434320
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x434320
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x434229
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x434229
test byte [ecx + 0x27], 0x80
jne 0x4342a0
push 1
push 0x468238
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43413d
mov ecx, dword [0x4681f0]
test ecx, ecx
mov edx, ecx
jle 0x43425d
lea eax, [ecx*4 + 0x4681f4]
cmp dword [eax], edi
je 0x43425d
dec edx
sub eax, 4
test edx, edx
jg 0x434251
test edx, edx
jne 0x43428e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43426a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x434282
lea eax, [edx*4 + 0x4681f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x434270
cmp ecx, 0x10
jge 0x43428e
inc ecx
mov dword [0x4681f0], ecx
push 0
push 0x468238
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43413d
xor eax, eax
jmp 0x434323
test esi, esi
jle 0x43413d
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x468238
call ebx
test eax, eax
jne 0x43413d
cmp dword [esi*4 + 0x4681f8], edi
je 0x4342fa
mov eax, dword [0x4681f0]
lea esi, [eax - 1]
test esi, esi
jl 0x4342e8
cmp dword [esi*4 + 0x4681f8], edi
je 0x4342e4
dec esi
jns 0x4342d8
test esi, esi
jge 0x4342f8
cmp eax, 0x10
jge 0x4342f3
inc eax
mov dword [0x4681f0], eax
lea esi, [eax - 1]
jmp 0x4342fa
je 0x434312
xor ecx, ecx
test esi, esi
jl 0x434312
lea eax, [ecx*4 + 0x4681f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x434300
push 0
push 0x468238
call ebx
jmp 0x43413d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x435f3d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042e180
mov eax, dword [0x46420c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0042de3b
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x436070
push 2
push esi
push dword [ebp + 8]
call fcn.0042de3b
add esp, 0xc
cmp eax, ebx
je 0x436070
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x436010
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0042e200
push 0x8000
push dword [ebp + 8]
call fcn.0043a417
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x435fc6
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0042daa4
add esp, 0xc
cmp eax, 0xffffffff
je 0x435fe6
sub edi, eax
test edi, edi
jg 0x435fbe
jmp 0x435ffe
call fcn.0042f3e5
cmp dword [eax], 5
jne 0x435ffb
call fcn.0042f3dc
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0043a417
pop ecx
pop ecx
jmp 0x436058
jge 0x436058
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042de3b
push dword [ebp + 8]
call fcn.00436179
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 0x436058
call fcn.0042f3dc
mov dword [eax], 0xd
call fcn.0042f3e5
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.0042de3b
add esp, 0xc
mov eax, esi
pop edi
jmp 0x436072
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0042b3a1
leave
ret

Function at 0x436539
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x46420c]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x4365b8
push esi
call fcn.0043a483
test eax, eax
pop ecx
jne 0x436580
call fcn.0042f3e5
mov dword [eax], 0xf
call fcn.0042f3dc
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0042b3a1
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x4365cb
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x436573
inc eax
cmp eax, esi
ja 0x436573
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x436602
cmp eax, dword [ebp + 0x10]
jg 0x4365e3
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0042d47b
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x436617
call fcn.0042f3dc
mov dword [eax], 0xc
jmp 0x436573
cmp eax, dword [ebp + 0x10]
jle 0x436617
call fcn.0042f3dc
mov dword [eax], 0x22
jmp 0x436573
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.0042be85
pop ecx
pop ecx
jmp 0x436575
Function at 0x437c3e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x468328], ebx
push esi
push edi
jne 0x437cbe
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x437cf9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x468328], eax
je 0x437cf9
push 0x458994
push edi
call esi
push 0x458980
push edi
mov dword [0x46832c], eax
call esi
cmp dword [0x467dfc], 2
mov dword [0x468330], eax
jne 0x437cbe
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x468338], eax
je 0x437cbe
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x468334], eax
mov eax, dword [0x468334]
test eax, eax
je 0x437d03
call eax
test eax, eax
je 0x437cea
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x468338]
test eax, eax
je 0x437cea
test byte [ebp - 8], 1
jne 0x437d03
cmp dword [0x467e08], 4
jb 0x437cfd
or byte [ebp + 0x12], 0x20
jmp 0x437d22
xor eax, eax
jmp 0x437d32
or byte [ebp + 0x12], 4
jmp 0x437d22
mov eax, dword [0x46832c]
test eax, eax
je 0x437d22
call eax
mov ebx, eax
test ebx, ebx
je 0x437d22
mov eax, dword [0x468330]
test eax, eax
je 0x437d22
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x468328]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a483
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x43a4b1
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x43a4b6
cmp eax, 1
je 0x43a4b6
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43c393
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4598d0
call fcn.0042f270
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4683e4], edi
jne 0x43c3d7
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43c3c2
mov dword [0x4683e4], ebx
jmp 0x43c3d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43c3d7
mov dword [0x4683e4], 2
mov eax, dword [0x4683e4]
cmp eax, ebx
jne 0x43c3f7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x43c4ba
cmp eax, 2
je 0x43c400
cmp eax, edi
jne 0x43c428
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x43c413
mov eax, dword [0x46835c]
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 0x43c42f
xor eax, eax
jmp 0x43c4ba
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0042e180
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x43c462
cmp esi, edi
jne 0x43c478
push dword [ebp - 0x20]
call fcn.0042d47b
pop ecx
mov esi, eax
cmp esi, edi
je 0x43c428
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 0x43c4ab
cmp dword [ebp + 0x14], edi
jne 0x43c495
push edi
push edi
jmp 0x43c49b
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 0x43c4b7
push esi
call fcn.0042c5bd
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0042f2ab
ret
Function at 0x43c4c3
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4598e0
call fcn.0042f270
xor esi, esi
cmp dword [0x4683e8], esi
jne 0x43c507
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43c4f2
mov dword [0x4683e8], edi
jmp 0x43c507
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43c507
mov dword [0x4683e8], 2
mov eax, dword [0x4683e8]
cmp eax, 2
je 0x43c5e8
cmp eax, esi
je 0x43c5e8
cmp eax, 1
jne 0x43c54c
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x43c535
mov eax, dword [0x46835c]
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 0x43c553
xor eax, eax
jmp 0x43c5fa
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0042e180
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x43c589
cmp edi, esi
jne 0x43c5a4
lea eax, [ebx + ebx]
push eax
call fcn.0042d47b
pop ecx
mov edi, eax
cmp edi, esi
je 0x43c54c
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 0x43c5d7
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x43c5c1
push esi
push esi
jmp 0x43c5c7
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 0x43c5e3
push edi
call fcn.0042c5bd
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x43c5fa
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.0042f2ab
ret
Function at 0x43cabf
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 0x43cad8
or eax, 0xffffffff
jmp 0x43cb39
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x43cb35
push 0x3d
push esi
call fcn.0043cf77
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x43cb35
cmp esi, eax
je 0x43cb35
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x467e1c]
sete cl
cmp eax, dword [0x467e20]
mov dword [ebp - 8], ecx
jne 0x43cb1b
mov edi, eax
call fcn.0043ca5e
mov dword [0x467e1c], eax
cmp eax, ebx
jne 0x43cb74
cmp dword [ebp + 0xc], ebx
je 0x43cb3d
cmp dword [0x467e24], ebx
je 0x43cb3d
call fcn.0043b99d
test eax, eax
je 0x43cb74
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x43cb46
xor eax, eax
jmp 0x43cb38
push 4
call fcn.0042d47b
cmp eax, ebx
pop ecx
mov dword [0x467e1c], eax
je 0x43cb35
mov dword [eax], ebx
cmp dword [0x467e24], ebx
jne 0x43cb74
push 4
call fcn.0042d47b
cmp eax, ebx
pop ecx
mov dword [0x467e24], eax
je 0x43cb35
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x467e1c]
call fcn.0043ca11
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x43cbd5
cmp dword [esi], ebx
je 0x43cbd5
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0042c5bd
cmp dword [ebp - 8], ebx
pop ecx
jne 0x43cbb8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x43cc16
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x43cbaf
mov eax, edi
shl eax, 2
push eax
push dword [0x467e1c]
call fcn.0042e59d
cmp eax, ebx
pop ecx
pop ecx
je 0x43cc16
jmp 0x43cc11
cmp dword [ebp - 8], ebx
jne 0x43cc81
cmp edi, ebx
jge 0x43cbe4
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x467e1c]
call fcn.0042e59d
cmp eax, ebx
pop ecx
pop ecx
je 0x43cb35
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 [0x467e1c], eax
cmp dword [ebp + 0xc], ebx
je 0x43cc6b
push dword [ebp - 4]
call fcn.0042e750
inc eax
inc eax
push eax
call fcn.0042d47b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x43cc6b
push dword [ebp - 4]
push esi
call fcn.004328a0
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 0x43cc64
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0042c5bd
pop ecx
cmp dword [ebp - 8], ebx
je 0x43cc79
push dword [ebp - 4]
call fcn.0042c5bd
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x43cb38
push dword [ebp - 4]
call fcn.0042c5bd
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x43cb42
Function at 0x43f749
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 0x43f780
call fcn.00448bdd
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43f791
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x43f7ca
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x43f7af
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x43f7b7
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x43f7c8
test ax, ax
jne 0x43f7c8
test si, si
je 0x43f7ca
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x43f7d9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x43fa2b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x44da50
call fcn.0042e7dc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00448bdd
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x43fa79
call fcn.00448bdd
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43fa8a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x43fa96
or eax, 0xffffffff
jmp 0x43fb99
mov ecx, esi
call fcn.0043f56b
mov dword [ebp - 0x14], eax
call fcn.00441264
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x43fad9
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x43fad9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x43fad9
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.004424e1
push dword [ebp - 0x14]
call fcn.004411bc
push edi
push eax
push ebx
mov ecx, esi
call fcn.0043f81e
xor ebx, ebx
cmp eax, ebx
je 0x43fb4d
test byte [esi + 0x38], 0x10
je 0x43fb1b
push 4
pop edi
mov ecx, esi
call fcn.004431f2
test ah, 1
je 0x43fb13
push 5
pop edi
push edi
mov ecx, esi
call fcn.00440c60
cmp dword [esi + 0x1c], ebx
je 0x43fb4d
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00443440
jmp 0x43fb4d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x43fb61
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x43fb7a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x43fb7a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0043f5a5
cmp dword [esi + 0x54], ebx
je 0x43fb96
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x441c39
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x441c72
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00421e5d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004036d0
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]