joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bb23
Capabilities:
Terminate process

Disassembly:
push 8
push 0x450850
call fcn.0042bf00
push 8
call fcn.0042ee3b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x45ec64], esi
jne 0x42bb57
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x45ec60], esi
mov al, byte [ebp + 0x10]
mov byte [0x45ec5c], al
cmp dword [ebp + 0xc], edi
jne 0x42bba1
cmp dword [0x4605e8], edi
je 0x42bb91
mov eax, dword [0x4605e4]
sub eax, 4
mov dword [0x4605e4], eax
cmp eax, dword [0x4605e8]
jb 0x42bb91
mov eax, dword [eax]
cmp eax, edi
je 0x42bb72
call eax
jmp 0x42bb72
push 0x45a098
mov eax, 0x45a090
call fcn.0042baa1
pop ecx
push 0x45a0a4
mov eax, 0x45a09c
call fcn.0042baa1
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42bbd2
cmp dword [ebp + 0x10], edi
jne 0x42bbe0
mov dword [0x45ec64], esi
push dword [ebp + 8]
call fcn.0042ba5f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42bbdf
push 8
call fcn.0042ed86
pop ecx
ret
call fcn.0042bf3b
ret

Function at 0x42be1a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042ae10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42beb5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x45ec24]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x42beb5
cmp eax, 1
je 0x42bed6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42beb5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42be82
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42beb1
xor eax, eax
inc eax
jmp 0x42bef5
cmp edi, eax
jae 0x42beb9
xor eax, eax
jmp 0x42bef5
cmp eax, esi
jae 0x42bec0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x45ec24]
jmp 0x42bed9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42c44b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45b1e4]
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 + 0x45b3a8]
je 0x42c480
inc eax
cmp eax, 0x13
jb 0x42c471
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45b3a8]
jne 0x42c5a6
mov eax, dword [0x45ec18]
cmp eax, 1
je 0x42c57e
cmp eax, edx
jne 0x42c4b0
cmp dword [0x45b1e0], 1
je 0x42c57e
cmp ecx, 0xfc
je 0x42c5a6
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 0x42c4e6
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0042ebf0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042b3e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42c51a
mov eax, edi
push eax
call fcn.0042b3e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x450c78
push edi
call fcn.00433bf0
add esp, 0x10
push edi
call fcn.0042b3e0
push dword [esi + 0x45b3ac]
mov ebx, eax
call fcn.0042b3e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042ae10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0042ebf0
push edi
push ebx
call fcn.0042ec00
push 0x450c58
push ebx
call fcn.0042ec00
push dword [esi + 0x45b3ac]
push ebx
call fcn.0042ec00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00433af3
add esp, 0x2c
jmp 0x42c5a6
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45b3ac]
push dword [esi]
call fcn.0042b3e0
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.00428731
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x42ca6e
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x45ee84]
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 0x42cab7
call ebp
mov esi, eax
cmp esi, ebx
je 0x42ca9d
mov dword [0x45ee84], 1
jmp 0x42cabc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42cab2
push 2
pop eax
mov dword [0x45ee84], eax
jmp 0x42cab7
mov eax, dword [0x45ee84]
cmp eax, 1
jne 0x42cb14
cmp esi, ebx
jne 0x42cacf
call ebp
mov esi, eax
cmp esi, ebx
jne 0x42cacf
xor eax, eax
jmp 0x42cbbb
cmp word [esi], bx
mov eax, esi
je 0x42cae4
inc eax
inc eax
cmp word [eax], bx
jne 0x42cad6
inc eax
inc eax
cmp word [eax], bx
jne 0x42cad6
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0042a0a3
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x42cb07
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x42cbbb
push ebp
push esi
push edi
call fcn.0042aef0
add esp, 0xc
jmp 0x42caf9
cmp eax, 2
je 0x42cb1d
cmp eax, ebx
jne 0x42cac8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x42cac8
cmp byte [ebp], bl
mov esi, ebp
je 0x42cb53
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x42cac8
push esi
add edi, eax
call fcn.0042b3e0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x42cb30
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0042a0a3
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x42cbcc
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x42cbad
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 0x42cbc2
push edi
call fcn.0042b3e0
push esi
lea edi, [edi + eax + 1]
call fcn.004290eb
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x42cb73
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.0042a0b5
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x42cac8
Function at 0x42cbd8
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x45ee88]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x42cc18
call esi
test eax, eax
je 0x42cbfd
mov dword [0x45ee88], 1
jmp 0x42cc1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42cc14
mov dword [0x45ee88], 2
jmp 0x42cc26
xor eax, eax
jmp 0x42cc74
cmp eax, 1
jne 0x42cc21
call esi
jmp 0x42cc74
cmp eax, 2
jne 0x42cc14
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 0x42cc6c
lea eax, [esi + esi]
push eax
call fcn.0042a0a3
mov ebp, eax
test ebp, ebp
pop ecx
je 0x42cc6c
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x42cc70
push ebp
call fcn.0042a0b5
pop ecx
xor eax, eax
jmp 0x42cc72
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x42f497
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 0x42f4c5
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 0x42f4cc
cmp ebx, dword [eax + 4]
jae 0x42f4cc
xor eax, eax
jmp 0x42f6bc
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42f4dd
xor eax, eax
inc eax
jmp 0x42f6bb
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42f4f3
cmp ecx, edx
jae 0x42f638
cmp dword [eax + 4], 0
je 0x42f4fc
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42f4e4
cmp dword [ebp + 8], 0
je 0x42f51e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42f638
cmp eax, esi
jae 0x42f638
mov eax, dword [0x45f018]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42f543
cmp dword [esi*4 + 0x45f020], edi
je 0x42f63c
inc esi
cmp esi, eax
jl 0x42f531
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42f6b8
cmp dword [ebp - 8], 0x1000000
jne 0x42f6b8
test byte [ebp - 0xc], 0xcc
je 0x42f5c1
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42f6b8
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42f6b8
cmp word [eax + 0x18], 0x10b
jne 0x42f6b8
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42f6b8
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42f5c1
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42f5c1
test byte [ecx + 0x27], 0x80
jne 0x42f638
push 1
push 0x45f060
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42f4d5
mov ecx, dword [0x45f018]
test ecx, ecx
mov edx, ecx
jle 0x42f5f5
lea eax, [ecx*4 + 0x45f01c]
cmp dword [eax], edi
je 0x42f5f5
dec edx
sub eax, 4
test edx, edx
jg 0x42f5e9
test edx, edx
jne 0x42f626
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42f602
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42f61a
lea eax, [edx*4 + 0x45f020]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42f608
cmp ecx, 0x10
jge 0x42f626
inc ecx
mov dword [0x45f018], ecx
push 0
push 0x45f060
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42f4d5
xor eax, eax
jmp 0x42f6bb
test esi, esi
jle 0x42f4d5
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x45f060
call ebx
test eax, eax
jne 0x42f4d5
cmp dword [esi*4 + 0x45f020], edi
je 0x42f692
mov eax, dword [0x45f018]
lea esi, [eax - 1]
test esi, esi
jl 0x42f680
cmp dword [esi*4 + 0x45f020], edi
je 0x42f67c
dec esi
jns 0x42f670
test esi, esi
jge 0x42f690
cmp eax, 0x10
jge 0x42f68b
inc eax
mov dword [0x45f018], eax
lea esi, [eax - 1]
jmp 0x42f692
je 0x42f6aa
xor ecx, ecx
test esi, esi
jl 0x42f6aa
lea eax, [ecx*4 + 0x45f020]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42f698
push 0
push 0x45f060
call ebx
jmp 0x42f4d5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431ee0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042ae10
mov eax, dword [0x45b1e4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0042aad4
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x432013
push 2
push esi
push dword [ebp + 8]
call fcn.0042aad4
add esp, 0xc
cmp eax, ebx
je 0x432013
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x431fb3
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0042ae90
push 0x8000
push dword [ebp + 8]
call fcn.004350e7
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x431f69
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0042a73d
add esp, 0xc
cmp eax, 0xffffffff
je 0x431f89
sub edi, eax
test edi, edi
jg 0x431f61
jmp 0x431fa1
call fcn.0042c075
cmp dword [eax], 5
jne 0x431f9e
call fcn.0042c06c
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004350e7
pop ecx
pop ecx
jmp 0x431ffb
jge 0x431ffb
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042aad4
push dword [ebp + 8]
call fcn.0043211c
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 0x431ffb
call fcn.0042c06c
mov dword [eax], 0xd
call fcn.0042c075
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.0042aad4
add esp, 0xc
mov eax, esi
pop edi
jmp 0x432015
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00428731
leave
ret

Function at 0x43241e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x45b1e4]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x43249d
push esi
call fcn.00435153
test eax, eax
pop ecx
jne 0x432465
call fcn.0042c075
mov dword [eax], 0xf
call fcn.0042c06c
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.00428731
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 0x4324b0
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x432458
inc eax
cmp eax, esi
ja 0x432458
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4324e7
cmp eax, dword [ebp + 0x10]
jg 0x4324c8
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0042a0a3
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4324fc
call fcn.0042c06c
mov dword [eax], 0xc
jmp 0x432458
cmp eax, dword [ebp + 0x10]
jle 0x4324fc
call fcn.0042c06c
mov dword [eax], 0x22
jmp 0x432458
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.0042924a
pop ecx
pop ecx
jmp 0x43245a
Function at 0x433af3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x45f150], ebx
push esi
push edi
jne 0x433b73
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x433bae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x45f150], eax
je 0x433bae
push 0x451924
push edi
call esi
push 0x451910
push edi
mov dword [0x45f154], eax
call esi
cmp dword [0x45ec24], 2
mov dword [0x45f158], eax
jne 0x433b73
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x45f160], eax
je 0x433b73
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x45f15c], eax
mov eax, dword [0x45f15c]
test eax, eax
je 0x433bb8
call eax
test eax, eax
je 0x433b9f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x45f160]
test eax, eax
je 0x433b9f
test byte [ebp - 8], 1
jne 0x433bb8
cmp dword [0x45ec30], 4
jb 0x433bb2
or byte [ebp + 0x12], 0x20
jmp 0x433bd7
xor eax, eax
jmp 0x433be7
or byte [ebp + 0x12], 4
jmp 0x433bd7
mov eax, dword [0x45f154]
test eax, eax
je 0x433bd7
call eax
mov ebx, eax
test ebx, ebx
je 0x433bd7
mov eax, dword [0x45f158]
test eax, eax
je 0x433bd7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x45f150]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x435153
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x435181
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 0x435186
cmp eax, 1
je 0x435186
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43734f
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 0x437368
or eax, 0xffffffff
jmp 0x4373c9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4373c5
push 0x3d
push esi
call fcn.00437807
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4373c5
cmp esi, eax
je 0x4373c5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x45ec44]
sete cl
cmp eax, dword [0x45ec48]
mov dword [ebp - 8], ecx
jne 0x4373ab
mov edi, eax
call fcn.004372ee
mov dword [0x45ec44], eax
cmp eax, ebx
jne 0x437404
cmp dword [ebp + 0xc], ebx
je 0x4373cd
cmp dword [0x45ec4c], ebx
je 0x4373cd
call fcn.004363ea
test eax, eax
je 0x437404
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4373d6
xor eax, eax
jmp 0x4373c8
push 4
call fcn.0042a0a3
cmp eax, ebx
pop ecx
mov dword [0x45ec44], eax
je 0x4373c5
mov dword [eax], ebx
cmp dword [0x45ec4c], ebx
jne 0x437404
push 4
call fcn.0042a0a3
cmp eax, ebx
pop ecx
mov dword [0x45ec4c], eax
je 0x4373c5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x45ec44]
call fcn.004372a1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x437465
cmp dword [esi], ebx
je 0x437465
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0042a0b5
cmp dword [ebp - 8], ebx
pop ecx
jne 0x437448
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4374a6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x43743f
mov eax, edi
shl eax, 2
push eax
push dword [0x45ec44]
call fcn.0042b22d
cmp eax, ebx
pop ecx
pop ecx
je 0x4374a6
jmp 0x4374a1
cmp dword [ebp - 8], ebx
jne 0x437511
cmp edi, ebx
jge 0x437474
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x45ec44]
call fcn.0042b22d
cmp eax, ebx
pop ecx
pop ecx
je 0x4373c5
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 [0x45ec44], eax
cmp dword [ebp + 0xc], ebx
je 0x4374fb
push dword [ebp - 4]
call fcn.0042b3e0
inc eax
inc eax
push eax
call fcn.0042a0a3
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4374fb
push dword [ebp - 4]
push esi
call fcn.0042ebf0
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 0x4374f4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0042a0b5
pop ecx
cmp dword [ebp - 8], ebx
je 0x437509
push dword [ebp - 4]
call fcn.0042a0b5
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4373c8
push dword [ebp - 4]
call fcn.0042a0b5
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4373d2
Function at 0x4393a3
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 0x4393da
call fcn.00442837
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 0x4393eb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x439424
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x439409
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x439411
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x439422
test ax, ax
jne 0x439422
test si, si
je 0x439424
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x439433
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x439685
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4472f0
call fcn.0042b46c
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.00442837
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4396d3
call fcn.00442837
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 0x4396e4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4396f0
or eax, 0xffffffff
jmp 0x4397f3
mov ecx, esi
call fcn.004391c5
mov dword [ebp - 0x14], eax
call fcn.0043aebe
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x439733
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x439733
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x439733
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.0043c13b
push dword [ebp - 0x14]
call fcn.0043ae16
push edi
push eax
push ebx
mov ecx, esi
call fcn.00439478
xor ebx, ebx
cmp eax, ebx
je 0x4397a7
test byte [esi + 0x38], 0x10
je 0x439775
push 4
pop edi
mov ecx, esi
call fcn.0043ce4c
test ah, 1
je 0x43976d
push 5
pop edi
push edi
mov ecx, esi
call fcn.0043a8ba
cmp dword [esi + 0x1c], ebx
je 0x4397a7
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0043d09a
jmp 0x4397a7
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4397bb
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x4397d4
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4397d4
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.004391ff
cmp dword [esi + 0x54], ebx
je 0x4397f0
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 0x43b893
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x43b8cc
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.0041f1ed
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00402b10
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]