joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e520
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x45752c]
push esi
mov esi, dword [ebp + 0x3ac]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp + 0x394], eax
mov byte [ebp - 0x6d], 0
je 0x41e70b
push 0x5c
push esi
call fcn.00433ae0
cmp eax, edi
pop ecx
pop ecx
jne 0x41e562
mov dword [ebp - 0x78], esi
jmp 0x41e566
inc eax
mov dword [ebp - 0x78], eax
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41e70b
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41e703
cmp ebx, dword [ebp + 0x3b4]
ja 0x41e703
push ebx
mov dword [ebp - 0x80], edi
call fcn.004321fb
pop ecx
push edi
lea ecx, [ebp - 0x80]
push ecx
push ebx
push eax
push esi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
setne byte [ebp + 0x3af]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x3af], 0
je 0x41e6f8
cmp dword [ebp - 0x80], ebx
jne 0x41e6f8
cmp dword [ebp + 0x3b0], edi
jne 0x41e5f9
mov dword [ebp + 0x3ac], edi
jmp 0x41e60b
push dword [ebp + 0x3b0]
call fcn.00432170
pop ecx
mov dword [ebp + 0x3ac], eax
push dword [ebp - 0x78]
call fcn.00432170
mov edi, eax
mov dword [esp], str._r_n___s___r_n
call fcn.00432170
add edi, eax
mov dword [esp], str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:_application_octet_stream_r_nContent_Length:__d_r_n_r_n
call fcn.00432170
mov esi, str.____________________kjasktiuasuidgkjgfasgdsigfyitgifguwe
push esi
add edi, eax
call fcn.00432170
push esi
add edi, eax
call fcn.00432170
add edi, eax
mov eax, dword [ebp + 0x3ac]
add eax, ebx
lea eax, [edi + eax - 0xa]
mov dword [ebp + 0x3ac], eax
add eax, 0x64
push eax
call fcn.004321fb
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x3b0]
add esp, 0x10
test eax, eax
jne 0x41e676
mov eax, 0x446aea
push ebx
push dword [ebp - 0x78]
push eax
push esi
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:_application_octet_stream_r_nContent_Length:__d_r_n_r_n
push dword [ebp - 0x74]
call fcn.0043326c
push dword [ebp - 0x74]
call fcn.00432170
mov edi, eax
add edi, dword [ebp - 0x74]
push ebx
push dword [ebp - 0x7c]
push edi
call fcn.004329f0
push esi
push str._r_n___s___r_n
add edi, ebx
push edi
call fcn.0043326c
push esi
lea eax, [ebp - 0x6c]
push str.multipart_form_data__boundary_s_
push eax
call fcn.0043326c
add esp, 0x40
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x3ac]
push dword [ebp - 0x74]
push dword [ebp + 0x3a8]
push dword [ebp + 0x3a4]
push dword [ebp + 0x3a0]
call fcn.0041e3e1
add esp, 0x18
test al, al
je 0x41e6ef
mov byte [ebp - 0x6d], 1
push dword [ebp - 0x74]
call fcn.00432126
pop ecx
push dword [ebp - 0x7c]
call fcn.00432126
pop ecx
jmp 0x41e70a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp + 0x394]
mov al, byte [ebp - 0x6d]
pop edi
pop esi
call fcn.0043215c
add ebp, 0x398
leave
ret
Function at 0x422d0a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push dword [esi + 0x154]
mov byte [ebp - 1], 0
call fcn.00432126
xor edi, edi
cmp dword [ebp + 8], edi
pop ecx
mov dword [esi + 0x154], edi
mov dword [esi + 0x150], edi
mov dword [esi + 0x14c], edi
je 0x422e76
push ebx
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x422e75
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esi + 4]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x422e6e
mov edx, dword [esi + 0x68]
sub edx, 0x40
lea ecx, [esi + 0x6c]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 4]
test al, al
je 0x422e6e
lea ecx, [esi + 0x80]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x422e6e
push dword [esi + 0x11c]
lea ecx, [esi + 0x120]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x48]
test al, al
je 0x422e6e
lea eax, [esi + 0x120]
push eax
push dword [esi + 0x94]
lea edi, [esi + 0x134]
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 0xc]
test al, al
je 0x422e6e
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x14]
test al, al
je 0x422e6e
mov edi, dword [esi + 0x130]
jmp 0x422e0d
mov eax, dword [edi]
push esi
push ebx
mov ecx, edi
call dword [eax + 4]
test al, al
je 0x422e7f
mov edi, dword [edi + 4]
test edi, edi
jne 0x422dfd
push 1
push edi
push edi
push ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x422e6e
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [esi + 0x14c], eax
mov dword [esi + 0x150], ecx
je 0x422e6a
push ecx
call fcn.00433072
and dword [ebp + 8], edi
pop ecx
push edi
lea ecx, [ebp + 8]
push ecx
push dword [esi + 0x150]
mov dword [esi + 0x154], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422e7f
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x150]
jne 0x422e7f
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 4
mov byte [ebp - 1], 0
jmp 0x422e6e

Function at 0x423236
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x42325d
push 0x456320
lea ecx, [ebp - 0xc]
call fcn.004330ec
push 0x453160
lea eax, [ebp - 0xc]
push eax
call fcn.004330a1
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x42327f
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x42326f
pop edi
pop esi
leave
ret 8
Function at 0x460a57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004538f8
and dword [ebp - 4], 0
cmp dword [0x491318], 0
mov ebx, eax
jne 0x460b08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x460bb9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47aad4
push edi
call esi
test eax, eax
je 0x460bb9
push eax
call fcn.00453886
mov dword [esp], 0x47aac4
push edi
mov dword [0x491318], eax
call esi
push eax
call fcn.00453886
mov dword [esp], 0x47aab0
push edi
mov dword [0x49131c], eax
call esi
push eax
call fcn.00453886
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x491320], eax
call esi
push eax
call fcn.00453886
pop ecx
mov dword [0x491328], eax
test eax, eax
je 0x460b08
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00453886
pop ecx
mov dword [0x491324], eax
mov eax, dword [0x491324]
cmp eax, ebx
je 0x460b60
cmp dword [0x491328], ebx
je 0x460b60
push eax
call fcn.00453901
push dword [0x491328]
mov esi, eax
call fcn.00453901
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x460b60
test edi, edi
je 0x460b60
call esi
test eax, eax
je 0x460b57
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x460b57
test byte [ebp - 0xc], 1
jne 0x460b60
or dword [ebp + 0x10], 0x200000
jmp 0x460b99
mov eax, dword [0x49131c]
cmp eax, ebx
je 0x460b99
push eax
call fcn.00453901
pop ecx
test eax, eax
je 0x460b99
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x460b99
mov eax, dword [0x491320]
cmp eax, ebx
je 0x460b99
push eax
call fcn.00453901
pop ecx
test eax, eax
je 0x460b99
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x491318]
call fcn.00453901
pop ecx
test eax, eax
je 0x460bb9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x460bbb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412325
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 0x412353
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 0x41235a
cmp ebx, dword [eax + 4]
jae 0x41235a
xor eax, eax
jmp 0x41254a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41236b
xor eax, eax
inc eax
jmp 0x412549
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x412381
cmp ecx, edx
jae 0x4124c6
cmp dword [eax + 4], 0
je 0x41238a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x412372
cmp dword [ebp + 8], 0
je 0x4123ac
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4124c6
cmp eax, esi
jae 0x4124c6
mov eax, dword [0x438810]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4123d1
cmp dword [esi*4 + 0x438818], edi
je 0x4124ca
inc esi
cmp esi, eax
jl 0x4123bf
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4290d4]
test eax, eax
je 0x412546
cmp dword [ebp - 8], 0x1000000
jne 0x412546
test byte [ebp - 0xc], 0xcc
je 0x41244f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x412546
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x412546
cmp word [eax + 0x18], 0x10b
jne 0x412546
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x412546
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41244f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41244f
test byte [ecx + 0x27], 0x80
jne 0x4124c6
push 1
push 0x438858
call dword [0x4292b0]
test eax, eax
jne 0x412363
mov ecx, dword [0x438810]
test ecx, ecx
mov edx, ecx
jle 0x412483
lea eax, [ecx*4 + 0x438814]
cmp dword [eax], edi
je 0x412483
dec edx
sub eax, 4
test edx, edx
jg 0x412477
test edx, edx
jne 0x4124b4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x412490
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4124a8
lea eax, [edx*4 + 0x438818]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x412496
cmp ecx, 0x10
jge 0x4124b4
inc ecx
mov dword [0x438810], ecx
push 0
push 0x438858
call dword [0x4292b0]
jmp 0x412363
xor eax, eax
jmp 0x412549
test esi, esi
jle 0x412363
mov ebx, dword [0x4292b0]
push 1
push 0x438858
call ebx
test eax, eax
jne 0x412363
cmp dword [esi*4 + 0x438818], edi
je 0x412520
mov eax, dword [0x438810]
lea esi, [eax - 1]
test esi, esi
jl 0x41250e
cmp dword [esi*4 + 0x438818], edi
je 0x41250a
dec esi
jns 0x4124fe
test esi, esi
jge 0x41251e
cmp eax, 0x10
jge 0x412519
inc eax
mov dword [0x438810], eax
lea esi, [eax - 1]
jmp 0x412520
je 0x412538
xor ecx, ecx
test esi, esi
jl 0x412538
lea eax, [ecx*4 + 0x438818]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x412526
push 0
push 0x438858
call ebx
jmp 0x412363
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e73d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1000e7e0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1000e7bb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1000e79f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x1000e7b9
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.10024b73
or dword [eax], 0xffffffff
jmp 0x1000e794
jmp 0x1000e7de
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x1000e7de
push 0x264e
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1000e7f8
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
push 1
push 0x541d
push dword [ebp - 0x2c]
call fcn.1000e633
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x1000f651
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1000f69a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push 0x42f
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x281c
push 0xfa
push 0x6b3e
push 0
call fcn.100112e6
add esp, 0x20
jmp 0x1000f719
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x1000f700
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1000f6e4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 4
jge 0x1000f6fe
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x2c]
call fcn.10024b73
or dword [eax], 0xffffffff
jmp 0x1000f6d9
jmp 0x1000f719
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1000f719
push 0x264e
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esp, ebp
pop ebp
ret
Function at 0x1002ba58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002bac7
lea eax, [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1002baa2
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1002baa0
push 0
call fcn.1003030e
pop ecx
jmp 0x1002bac5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x1002bac5
push 0x264e
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1002baee
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
push 0x67d0
push 1
push 0x4326
push 0x24ad
push dword [ebp - 0x20]
push 0x2154
call fcn.1002a83f
add esp, 0x18
mov esp, ebp
pop ebp
ret

Function at 0x1002daf4
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002dba9
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1002db5c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x1002db5a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x1002dba7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1002db8a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 4
jge 0x1002dba7
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.10024b73
mov dword [eax], 0x7571
jmp 0x1002db7f
jmp 0x1002dbc5
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 1
call fcn.1002b6fd
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10030027
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100776e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100300c9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x100300a1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1003009f
push 1
push 0x540d
push 0
push 0x1125
push 0x3490
push 0x39b7
push 1
call fcn.1003372c
add esp, 0x1c
jmp 0x100300c4
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x100300c4
push 0x1897
push 0
push 0x143a
push 0x106c
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
jmp 0x100301db
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x100300ee
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x100301db
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x100301db
mov dword [ebp - 0x24], 0x3f85
mov dword [ebp - 0x48], 0x1000bd00
cmp dword [ebp - 0x24], 0x42ad
jle 0x10030187
and dword [ebp - 0x20], 0
jmp 0x1003012c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4964
jge 0x10030187
and dword [ebp - 0x18], 0
jmp 0x10030142
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x452
jge 0x10030185
and dword [ebp - 0x1c], 0
jmp 0x10030158
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3b86
jge 0x10030183
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
mov ecx, 0x1061f218
call fcn.100248cc
jmp 0x10030151
jmp 0x1003013b
jmp 0x10030125
push 0
push 0x1d87
push 0x1a19
push 0
call dword [sym.imp.GDI32.dll_GetPaletteEntries]
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x3c86
jge 0x100301b5
mov edx, dword [ebp - 0x48]
mov ecx, 0x1061f218
call fcn.10028f8c
jmp 0x100301d1
or dword [ebp - 4], 0xffffffff
jmp 0x100301db
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100301ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10030219
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x20fa
push 0x4484
push 1
call fcn.1003024b
add esp, 0x10
jmp 0x10030247
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10030241
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003023f
push 0
push 0
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x10030247
call dword [sym.imp.USER32.dll_EndMenu]
mov esp, ebp
pop ebp
ret

Function at 0x10030327
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100303ed
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x100303e5
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x24], 0x101aae4b
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0x45dcefb
mov dword [ebp - 4], 0xfffffffd
mov dword [ebp - 0x10], 0x9b467bb1
mov dword [ebp - 8], 0xab3ae5d5
mov dword [ebp - 0x14], 0xfffffffa
mov dword [ebp - 0x38], 0x2b500989
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x29cb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x35d4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10032c5c
add esp, 0x2c
push 0x65c4
push 1
push 0x3f23
lea eax, [ebp - 4]
push eax
push 0x5bfd
push 1
lea eax, [ebp - 8]
push eax
call fcn.1002f0a3
add esp, 0x1c
jmp 0x100303eb
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jmp 0x1003042f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x1003040d
push 0
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x1003042f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1003042f
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov esp, ebp
pop ebp
ret
Function at 0x10032b88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10032c2e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10032c09
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10032bea
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x10032c07
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.10024b73
mov dword [eax], 0xfffffff7
jmp 0x10032bdf
jmp 0x10032c2c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x10032c2c
push 0x264e
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x10032c58
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0x40fb
push dword [ebp - 0x34]
push 0
call fcn.1002b89d
add esp, 0x14
mov esp, ebp
pop ebp
ret