joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4738bc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x488bf4]
cmp dword [eax + 0x30], 0
je 0x473966
cmp dword [ebx + 0x94], 0
jne 0x473960
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47384c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x473960
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x473926
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x473960
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419878
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x473935
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4744c8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4744fd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004046b0
jmp 0x47450a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404614
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47555c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47559d
mov eax, esi
call fcn.0045b694
test al, al
je 0x47559d
mov eax, dword [ebx + 0x84]
call fcn.0045b390
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47559d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045b390
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x479ccc
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea edi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x479dde
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x3c
call fcn.00479cb8
mov dword [edi + 8], 0x21
mov dword [edi + 0x14], 0x101
mov dword [edi + 0x20], 0x81
mov dword [edi + 0x28], 0x81
mov dword [edi + 0x30], 0x801
mov dword [edi + 0x38], 0x801
mov eax, 0x101
call fcn.00409330
mov dword [edi + 0x10], eax
mov eax, 0x801
call fcn.00409330
mov dword [edi + 0x2c], eax
mov eax, 0x801
call fcn.00409330
mov dword [edi + 0x34], eax
push edi
push 0x80000000
mov eax, ebx
call fcn.00404880
push eax
mov eax, ebx
call fcn.00404a80
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x479db0
mov eax, dword [ebp - 4]
mov edx, dword [edi + 0x10]
call fcn.004047b8
mov eax, esi
mov edx, dword [edi + 0x2c]
call fcn.004047b8
lea eax, [ebp - 8]
mov edx, dword [edi + 0x34]
call fcn.004047b8
cmp dword [ebp - 8], 0
je 0x479da6
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00404888
mov eax, dword [ebp + 8]
mov dx, word [edi + 0x18]
mov word [eax], dx
mov eax, dword [edi + 0x34]
call fcn.0040937c
mov eax, dword [edi + 0x2c]
call fcn.0040937c
mov eax, dword [edi + 0x10]
call fcn.0040937c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479de5
lea eax, [ebp - 8]
call fcn.004045c0
ret
Function at 0x47b788
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x487130]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x47b79c
Capabilities:
Hide graphical window

Disassembly:
push 9
mov eax, dword [0x487130]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x487130]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x487130]
mov eax, dword [eax]
cmp byte [eax + 0x5b], 0
jne 0x47b7f1
mov eax, dword [0x487130]
mov eax, dword [eax]
mov byte [eax + 0x5b], 1
mov eax, dword [0x487130]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x47b7f1
mov edx, dword [0x487130]
mov dl, 1
call fcn.0046df08
ret

Function at 0x47e088
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a70
xor eax, eax
push ebp
push 0x47e151
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004045c0
mov eax, dword [ebp - 4]
call fcn.00404880
sar eax, 1
jns 0x47e0cf
adc eax, 0
mov ebx, eax
test ebx, ebx
jle 0x47e123
mov esi, 1
lea eax, [ebp - 0x18]
push eax
mov edx, esi
add edx, edx
dec edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.00404ae0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x47e168
call fcn.004048cc
mov eax, dword [ebp - 0x14]
call fcn.00408b70
mov edx, eax
xor edx, edi
lea eax, [ebp - 0x10]
call fcn.004047a8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00404888
inc esi
dec ebx
jne 0x47e0da
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404614
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e158
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004045e4
lea eax, [ebp - 4]
call fcn.004045c0
ret
Function at 0x47e42c
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe18
xor eax, eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47e5e5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1d8]
xor eax, eax
call fcn.00402a6c
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.00408fcc
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 4]
mov ecx, 0x47e5f8
call fcn.004048cc
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402e04
lea eax, [ebp - 0x1d0]
call fcn.00402b94
call fcn.004028ac
mov edx, 0x47e60c
lea eax, [ebp - 0x1d0]
call fcn.00404c9c
call fcn.0040323c
call fcn.004028ac
mov edx, 0x47e620
lea eax, [ebp - 0x1d0]
call fcn.00404c9c
call fcn.0040323c
call fcn.004028ac
push 0x47e630
lea edx, [ebp - 0x1e0]
xor eax, eax
call fcn.00402a6c
push dword [ebp - 0x1e0]
push 0x47e640
lea eax, [ebp - 0x1dc]
mov edx, 3
call fcn.00404940
mov edx, dword [ebp - 0x1dc]
lea eax, [ebp - 0x1d0]
call fcn.00404c9c
call fcn.0040323c
call fcn.004028ac
push 0x47e64c
lea edx, [ebp - 0x1e8]
xor eax, eax
call fcn.00402a6c
push dword [ebp - 0x1e8]
push 0x47e640
push 0x47e660
lea eax, [ebp - 0x1e4]
mov edx, 4
call fcn.00404940
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1d0]
call fcn.00404c9c
call fcn.0040323c
call fcn.004028ac
mov edx, 0x47e674
lea eax, [ebp - 0x1d0]
call fcn.00404c9c
call fcn.0040323c
call fcn.004028ac
lea eax, [ebp - 0x1d0]
call fcn.00402ecc
call fcn.004028ac
push 0
push 0x47e67c
call sub.kernel32.dll_WinExec
call fcn.0047e354
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e5ec
lea eax, [ebp - 0x1e8]
mov edx, 6
call fcn.004045e4
lea eax, [ebp - 4]
call fcn.004045c0
ret
Function at 0x402f09
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
push 0x18
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.00418730
add esp, 0xc
push 0x18
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.00418730
add esp, 0xc
mov byte [ebp - 0x24c], 0x48
mov byte [ebp - 0x24b], 0x45
mov byte [ebp - 0x24a], 0x52
mov byte [ebp - 0x249], 0x4f
mov byte [ebp - 0x248], 0x53
mov byte [ebp - 0x247], 0x4f
mov byte [ebp - 0x246], 0x46
mov byte [ebp - 0x245], 0x54
mov byte [ebp - 0x244], 0x53
mov byte [ebp - 0x243], 0x4f
mov byte [ebp - 0x242], 0x55
mov byte [ebp - 0x241], 0x54
mov byte [ebp - 0x240], 0x48
mov byte [ebp - 0x23f], 0x45
mov byte [ebp - 0x23e], 0x52
mov byte [ebp - 0x23d], 0x4e
mov byte [ebp - 0x23c], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [0x4234f4]
mov dword [ebp - 4], eax
push 0
mov eax, dword [0x41d05c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x4234f4]
xor eax, eax
sub eax, dword [0x41d05c]
neg eax
sub dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 9
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x208]
shl ecx, 9
sub eax, ecx
mov dword [ebp - 0x234], eax
mov eax, dword [0x41d05c]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 0
jmp 0x403022
inc dword [ebp - 0x228]
mov eax, dword [ebp - 0x208]
cmp dword [ebp - 0x228], eax
jge 0x4030dc
push 0x200
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x4234f8]
mov dword [ebp - 0x230], 0
jmp 0x40305f
inc dword [ebp - 0x230]
cmp dword [ebp - 0x230], 0x200
jge 0x4030d7
push 0xf
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004181f0
add esp, 0xc
mov eax, dword [ebp - 0x230]
mov al, byte [ebp + eax - 0x204]
mov byte [ebp - 0x211], al
inc dword [ebp - 0x22c]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [0x423510]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x4030d2
mov eax, dword [ebp - 0x22c]
jmp 0x403197
jmp 0x403059
jmp 0x40301c
cmp dword [ebp - 0x234], 0
je 0x403190
mov eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x4234f8]
mov dword [ebp - 0x230], 0
jmp 0x403116
inc dword [ebp - 0x230]
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x230], eax
jge 0x403190
push 0xf
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004181f0
add esp, 0xc
mov eax, dword [ebp - 0x230]
mov al, byte [ebp + eax - 0x204]
mov byte [ebp - 0x211], al
inc dword [ebp - 0x22c]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [0x423510]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x40318b
mov eax, dword [ebp - 0x22c]
jmp 0x403197
jmp 0x403110
xor eax, eax
jmp 0x403197
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40342b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
push 0x18
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.00418730
add esp, 0xc
push 0x18
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.00418730
add esp, 0xc
mov byte [ebp - 0x24c], 0x48
mov byte [ebp - 0x24b], 0x45
mov byte [ebp - 0x24a], 0x52
mov byte [ebp - 0x249], 0x4f
mov byte [ebp - 0x248], 0x53
mov byte [ebp - 0x247], 0x4f
mov byte [ebp - 0x246], 0x46
mov byte [ebp - 0x245], 0x54
mov byte [ebp - 0x244], 0x53
mov byte [ebp - 0x243], 0x4f
mov byte [ebp - 0x242], 0x55
mov byte [ebp - 0x241], 0x54
mov byte [ebp - 0x240], 0x48
mov byte [ebp - 0x23f], 0x45
mov byte [ebp - 0x23e], 0x52
mov byte [ebp - 0x23d], 0x4e
mov byte [ebp - 0x23c], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [0x4234f4]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x4234f4]
xor eax, eax
sub eax, dword [ebp + 0xc]
neg eax
sub dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 9
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x208]
shl ecx, 9
sub eax, ecx
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 0
jmp 0x40353d
inc dword [ebp - 0x228]
mov eax, dword [ebp - 0x208]
cmp dword [ebp - 0x228], eax
jge 0x4035f7
push 0x200
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x4234f8]
mov dword [ebp - 0x230], 0
jmp 0x40357a
inc dword [ebp - 0x230]
cmp dword [ebp - 0x230], 0x200
jge 0x4035f2
push 0xf
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004181f0
add esp, 0xc
mov eax, dword [ebp - 0x230]
mov al, byte [ebp + eax - 0x204]
mov byte [ebp - 0x211], al
inc dword [ebp - 0x22c]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [0x423510]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x4035ed
mov eax, dword [ebp - 0x22c]
jmp 0x4036b2
jmp 0x403574
jmp 0x403537
cmp dword [ebp - 0x234], 0
je 0x4036ab
mov eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x4234f8]
mov dword [ebp - 0x230], 0
jmp 0x403631
inc dword [ebp - 0x230]
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x234], eax
jle 0x4036ab
push 0xf
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004181f0
add esp, 0xc
mov eax, dword [ebp - 0x230]
mov al, byte [ebp + eax - 0x204]
mov byte [ebp - 0x211], al
inc dword [ebp - 0x22c]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [0x423510]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x4036a6
mov eax, dword [ebp - 0x22c]
jmp 0x4036b2
jmp 0x40362b
xor eax, eax
jmp 0x4036b2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405920
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0x14]
add ecx, dword [ebp + 0xc]
add ecx, 0x18
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x40594e
inc dword [ebp - 8]
add dword [ebp - 4], 0x28
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, dword [ebp - 8]
jbe 0x405991
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp dword [eax + 0xc], ecx
ja 0x40598c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0xc]
cmp eax, dword [ebp + 8]
jbe 0x40598c
mov eax, dword [ebp - 4]
jmp 0x405998
jmp 0x405947
xor eax, eax
jmp 0x405998
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405a4f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call dword [0x423404]
test eax, eax
je 0x405a79
xor eax, eax
jmp 0x405aee
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x405a94
xor eax, eax
jmp 0x405aee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0xf8
mov eax, dword [ebp - 8]
push eax
call dword [0x423404]
test eax, eax
je 0x405abe
xor eax, eax
jmp 0x405aee
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x405ad4
xor eax, eax
jmp 0x405aee
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040599d
add esp, 8
mov eax, 1
jmp 0x405aee
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405dab
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call dword [0x423404]
test eax, eax
je 0x405dd5
xor eax, eax
jmp 0x405e4a
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x405df0
xor eax, eax
jmp 0x405e4a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0xf8
mov eax, dword [ebp - 8]
push eax
call dword [0x423404]
test eax, eax
je 0x405e1a
xor eax, eax
jmp 0x405e4a
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x405e30
xor eax, eax
jmp 0x405e4a
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405b39
add esp, 8
mov eax, 1
jmp 0x405e4a
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xa88290
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x544000]
push edi
or ebp, 0xffffffff
jmp 0xa882b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa882b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa882a8
mov eax, 1
add ebx, ebx
jne 0xa882cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa882dc
jne 0xa882fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa882fb
dec eax
add ebx, ebx
jne 0xa882e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa882c0
add ebx, ebx
jne 0xa882f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa8834d
xor ecx, ecx
sub eax, 3
jb 0xa88313
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa88382
sar eax, 1
mov ebp, eax
jmp 0xa8831e
add ebx, ebx
jne 0xa8831e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa882ec
inc ecx
add ebx, ebx
jne 0xa8832c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa882ec
add ebx, ebx
jne 0xa88339
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa8832e
jne 0xa8834a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa8832e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa8836c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa8835e
jmp 0xa882ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa8836c
add edi, ecx
jmp 0xa882ae
pop esi
mov edi, esi
mov ecx, 0x11ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa8838a
cmp byte [edi], 0x78
jne 0xa8838a
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 0xa8838f
lea edi, [esi + 0x685000]
mov eax, dword [edi]
or eax, eax
je 0xa88407
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x689d1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x689e5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa883bc
mov ecx, edi
jns 0xa883eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x689e60]
or eax, eax
je 0xa88401
mov dword [ebx], eax
add ebx, 4
jmp 0xa883d9
call dword [esi + 0x689e70]
mov ebp, dword [esi + 0x689e64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0xa8843b
sub esp, 0xffffff80
jmp 0x614333
Function at 0x4028d4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402911
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402931
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404548
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4033ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46a00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403484
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403464
xor eax, eax
push ebp
push 0x40345d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4034a0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403464
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46a00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46a00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404164
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c04c], 0
je 0x4041c5
cmp word [0x46c220], 0xd7b2
jne 0x40418d
cmp dword [0x46c228], 0
jbe 0x40418d
mov eax, 0x46c21c
call dword [0x46c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46a054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4041ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46a01c], 0
jne 0x4041e1
push 0
push 0x46a074
push 0x46a054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408908
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404790
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408921
test al, 0x10
jne 0x408925
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409a3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409a75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043d0
jmp 0x409a7e
mov eax, ebx
mov edx, esi
call fcn.00404334
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409a88
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409aa9
mov al, byte [esp]
jmp 0x409aab
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a130
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409fa8
mov eax, dword [0x46b8b4]
cmp byte [eax], 0
je 0x40a198
mov eax, dword [0x46b6e8]
call fcn.00402d08
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408c74
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a1e0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a1ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46b6a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46c718]
call fcn.00405a04
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40ad80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ade4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404548
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004086fc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40adeb
lea eax, [ebp - 0xc]
call fcn.004042e0
ret