joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42549f
Capabilities:
Get geographical location

Disassembly:
push esi
push edi
push 0
mov esi, ecx
call fcn.0042545b
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x42549e
mov edi, dword [eax]
push eax
call fcn.0042cfc9
test edi, edi
pop ecx
mov eax, edi
jne 0x42548f
mov eax, dword [esi + 0x20]
and dword [esi + 0x1c], 0
test eax, eax
je 0x4254b8
mov edi, dword [eax]
push eax
call fcn.0042cfc9
test edi, edi
pop ecx
mov eax, edi
jne 0x4254a9
and dword [esi + 0x20], 0
pop edi
pop esi
ret

Function at 0x4255cf
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x4373a3
call fcn.00417900
sub esp, 0x88
mov eax, dword [ebp + 8]
and eax, 0x17
mov dword [ecx + 8], eax
mov ecx, dword [ecx + 0xc]
and ecx, eax
je 0x425661
xor ebx, ebx
cmp byte [ebp + 0xc], bl
je 0x4255db
push ebx
push ebx
jmp 0x42565c
test cl, 4
je 0x42560d
push str.ios_base::badbit_set
lea ecx, [ebp - 0x50]
call fcn.00404cb0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00425546
mov dword [ebp - 0x34], vtable.std::ios_base::failure.0
push 0x443e20
lea eax, [ebp - 0x34]
jmp 0x42565b
push 2
pop ebx
test bl, cl
je 0x42562a
push str.ios_base::failbit_set
lea ecx, [ebp - 0x50]
call fcn.00404cb0
mov dword [ebp - 4], 1
jmp 0x4255f0
push str.ios_base::eofbit_set
lea ecx, [ebp - 0x94]
call fcn.00404cb0
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], ebx
call fcn.00425546
mov dword [ebp - 0x78], vtable.std::ios_base::failure.0
push 0x443e20
lea eax, [ebp - 0x78]
push eax
call fcn.00416d8e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8

Function at 0x429914
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
mov dword [ecx + 0x28], eax
xor eax, eax
ret 4

Function at 0x429c04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
call fcn.00432c34
mov eax, dword [eax + 4]
cmp dword [eax + 0x68], 1
jne 0x429bfb
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x429bdc
push 0xf
pop eax
jmp 0x429bed
cmp eax, 3
jne 0x429be6
xor eax, eax
inc eax
jmp 0x429bed
cmp eax, 0xb
jne 0x429bed
xor eax, eax
mov edx, dword [esi]
push eax
push dword [esp + 0xc]
mov ecx, esi
call dword [edx + 0x78]
jmp 0x429c0a
push dword [esp + 0xc]
mov eax, dword [esi]
push dword [esp + 0xc]
mov ecx, esi
call dword [eax + 0x74]
pop esi
ret 8

Function at 0x42d0b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [edx + 4]
push esi
mov esi, eax
dec esi
je 0x42d0fe
sub esi, 0xe
je 0x42d0fe
push ebx
xor ebx, ebx
cmp eax, 0x111
push edi
mov edi, 0xf108
jne 0x42d0c2
cmp dword [edx + 0xc], ebx
jne 0x42d0bf
inc edi
xor ebx, ebx
inc ebx
mov esi, dword [esp + 0x10]
push 0x439d58
mov ecx, esi
call fcn.0042d8c7
test eax, eax
mov ecx, esi
je 0x42d0e0
push edi
push 0x1030
jmp 0x42d0f3
push 0x43add8
call fcn.0042d8c7
test eax, eax
jne 0x42d0f8
push edi
push 0x10
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x10]
pop edi
mov eax, ebx
pop ebx
jmp 0x42d108
push edx
push dword [esp + 0xc]
call fcn.0042d434
pop esi
ret 8
Function at 0x42da88
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp word [edi + 2], 0xffff
push edi
sete bl
mov dword [ebp + 8], ebx
call fcn.0042d99d
push edi
mov esi, eax
call fcn.0042d91e
test eax, eax
pop ecx
pop ecx
je 0x42da2c
xor eax, eax
test ebx, ebx
setne al
lea eax, [eax + eax + 1]
lea esi, [esi + eax*2]
push esi
call fcn.00417658
pop ecx
lea esi, [esi + eax*2 + 2]
test ebx, ebx
je 0x42da36
mov ax, word [edi + 0x10]
jmp 0x42da3a
mov ax, word [edi + 8]
test ax, ax
jbe 0x42daa2
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, 6
add ecx, 0x12
movzx ebx, ax
lea eax, [esi + 3]
and eax, 0xfffffffc
add eax, ecx
cmp word [eax], 0xffff
jne 0x42da62
add eax, 4
jmp 0x42da6c
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x42da62
cmp word [eax], 0xffff
jne 0x42da78
add eax, 4
jmp 0x42da82
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x42da78
xor edx, edx
mov dx, word [eax]
test dx, dx
je 0x42da98
cmp dword [ebp + 8], 0
jne 0x42da98
add edx, 0xfffe
dec ebx
movzx edx, dx
lea esi, [eax + edx + 2]
jne 0x42da4e
mov eax, esi
sub eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42f5e0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x436c29
call fcn.00417900
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CClientDC.0
and dword [ebp - 4], 0
call fcn.0042f52b
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ReleaseDC]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0042f55c
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x42fc40
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
push esi
mov esi, ecx
je 0x42fb67
cmp dword [ebp + 8], 0
jne 0x42fb6e
xor eax, eax
jmp 0x42fc78
test byte [esi + 0x18], 1
jne 0x42fb7e
push dword [esi + 0x14]
push 4
call fcn.00430114
mov eax, dword [esi + 0x28]
push edi
mov edi, dword [esi + 0x2c]
sub edi, eax
cmp ebx, edi
jae 0x42fb8d
mov edi, ebx
push edi
push eax
push dword [ebp + 8]
call fcn.004179c0
add dword [esi + 0x28], edi
add dword [ebp + 8], edi
add esp, 0xc
sub ebx, edi
je 0x42fc72
xor edx, edx
mov eax, ebx
div dword [esi + 0x20]
mov edi, ebx
sub edi, edx
and dword [ebp - 8], 0
mov dword [ebp - 4], edi
push dword [ebp - 4]
mov ecx, dword [esi + 0x24]
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0x34]
add dword [ebp + 8], eax
add dword [ebp - 8], eax
sub dword [ebp - 4], eax
test eax, eax
jbe 0x42fbdb
cmp dword [ebp - 4], 0
ja 0x42fbba
sub ebx, dword [ebp - 8]
je 0x42fc72
cmp dword [ebp - 8], edi
jne 0x42fc72
xor edi, edi
cmp dword [esi + 8], edi
jne 0x42fc3b
cmp dword [esi + 0xc], edi
jne 0x42fc03
mov eax, dword [esi + 0x20]
cmp ebx, eax
mov dword [ebp - 4], eax
jbe 0x42fc06
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x30]
mov dword [ebp - 8], eax
push dword [ebp - 4]
mov ecx, dword [esi + 0x24]
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x34]
add dword [ebp - 8], eax
sub dword [ebp - 4], eax
add edi, eax
test eax, eax
jbe 0x42fc30
cmp dword [ebp - 4], 0
jbe 0x42fc30
cmp edi, ebx
jb 0x42fc0c
mov eax, dword [esi + 0x30]
lea ecx, [eax + edi]
mov dword [esi + 0x2c], ecx
jmp 0x42fc52
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
lea eax, [esi + 0x2c]
push eax
lea edi, [esi + 0x30]
push edi
push dword [esi + 0x20]
push 0
call dword [edx + 0x50]
mov eax, dword [edi]
mov edi, dword [esi + 0x2c]
sub edi, eax
cmp ebx, edi
mov dword [esi + 0x28], eax
jae 0x42fc60
mov edi, ebx
push edi
push eax
push dword [ebp + 8]
call fcn.004179c0
add dword [esi + 0x28], edi
add esp, 0xc
sub ebx, edi
mov eax, dword [ebp + 0xc]
sub eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43099f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 3
push esi
mov esi, ecx
jne 0x430939
xor eax, eax
cmp eax, dword [esi + 0x10]
sbb eax, eax
neg eax
jmp 0x4309d9
cmp dword [ebp + 8], 2
jne 0x430957
mov eax, dword [ebp + 0xc]
add dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x1c]
jbe 0x430950
mov dword [esi + 0x1c], eax
xor eax, eax
jmp 0x4309d9
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4309d6
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4309d6
cmp dword [ebp + 8], 1
push edi
mov edi, dword [ebp + 0xc]
jne 0x430985
mov eax, dword [esi + 0x14]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x430985
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x64]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 0x20]
add eax, dword [esi + 0x14]
cmp dword [ebp + 8], 1
mov dword [ebx], eax
jne 0x4309aa
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
add eax, edi
cmp ecx, eax
jae 0x4309a1
mov eax, ecx
mov ecx, dword [esi + 0x20]
add ecx, eax
mov dword [edx], ecx
jmp 0x4309cf
cmp edi, 0xffffffff
jne 0x4309b5
mov edi, dword [esi + 0x18]
sub edi, dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add eax, edi
cmp ecx, eax
jae 0x4309c3
mov eax, ecx
mov ecx, dword [esi + 0x20]
add eax, ecx
mov dword [edx], eax
sub eax, dword [ebx]
add dword [esi + 0x14], eax
mov eax, dword [edx]
sub eax, dword [ebx]
pop edi
jmp 0x4309d8
xor eax, eax
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4315f1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xa0], ebx
jne 0x43150f
push 0x3020
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, ebx
je 0x43150f
push ebx
push ebx
push 0x200
push eax
call fcn.00428f70
test dword [esi + 0x54], 0x1000020
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
jne 0x431606
push 0x3020
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 8], eax
call edi
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0042f314
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x20
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x20], eax
jge 0x431606
sub eax, dword [ebp - 0x18]
push 0x16
sub eax, dword [ebp - 0x20]
push dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
push dword [eax + 0x447148]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4315d6
lea ecx, [ebp - 0x1c]
push ecx
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0042f314
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
push 0x15
push ebx
push ebx
push eax
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
jb 0x431593
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x1c]
call edi
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 0x16
sub eax, dword [ebp - 0xc]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
call fcn.0042c61c
mov ecx, esi
call fcn.0042a346
cmp dword [esi + 0xa4], ebx
mov dword [ebp - 8], eax
je 0x431688
test dword [esi + 0x54], 0x1000020
jne 0x431688
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x1c]
call edi
push 1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call edi
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x28]
push 0x16
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, esi
push eax
push ebx
push ebx
push ebx
call fcn.0042c61c
xor edi, edi
push dword [edi + 0x447148]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x431680
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
add edi, 4
cmp edi, 0x10
jb 0x431658
mov ecx, esi
call fcn.0042c3f8
test eax, 0x40000000
pop edi
jne 0x43169f
push ebx
mov ecx, esi
call fcn.00429cd8
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x43287a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
mov eax, dword [0x447d10]
push ebx
push esi
push edi
mov dword [ebp + 0x74], eax
call dword [sym.imp.USER32.dll_GetMenuCheckMarkDimensions]
movsx ebx, ax
shr eax, 0x10
cmp ebx, 0x20
movsx ecx, ax
mov dword [ebp - 0x18], ecx
jle 0x432869
push 0x20
pop ebx
lea eax, [ebx - 4]
cdq
sub eax, edx
lea esi, [ebx + 0xf]
sar esi, 4
mov edi, eax
sar edi, 1
mov eax, esi
shl eax, 4
add edi, eax
sub edi, ebx
cmp edi, 0xc
jle 0x43288a
push 0xc
pop edi
push 0x20
pop eax
cmp ecx, eax
jle 0x432894
mov dword [ebp - 0x18], eax
push 0x80
lea eax, [ebp - 0xc]
push 0xff
push eax
call fcn.004178a0
mov eax, dword [ebp - 0x18]
lea edx, [eax - 6]
sar edx, 1
imul edx, esi
add esp, 0xc
lea edx, [ebp + edx*2 - 0xc]
mov dword [ebp - 0x10], 0x43a768
add esi, esi
mov dword [ebp - 0x14], 5
mov eax, dword [ebp - 0x10]
movzx ax, byte [eax]
mov ecx, edi
shl eax, cl
inc dword [ebp - 0x10]
not eax
mov byte [edx], ah
mov byte [edx + 1], al
add edx, esi
dec dword [ebp - 0x14]
jne 0x4328c9
lea eax, [ebp - 0xc]
push eax
push 1
push 1
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.GDI32.dll_CreateBitmap]
test eax, eax
pop edi
pop esi
mov dword [0x44ba58], eax
pop ebx
jne 0x432914
push 0x7fe3
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [0x44ba58], eax
mov ecx, dword [ebp + 0x74]
call fcn.004164ae
add ebp, 0x78
leave
ret

Function at 0x433e6e
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x433e7c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x433e9a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00433db8
jmp 0x433e9a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x433e9a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00433db8
test edi, edi
mov eax, edi
jne 0x433e84
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44ba64]
test ecx, ecx
je 0x433f4d
jmp 0x433e4d
ret 8

Function at 0x433f03
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x436d47
call fcn.00417900
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
jne 0x433ee8
mov ecx, dword [0x44ba64]
test ecx, ecx
jne 0x433ee1
mov ecx, 0x44ba68
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
call fcn.00433bf0
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [0x44ba64], ecx
call fcn.004339a9
mov dword [esi], eax
push dword [esi]
mov ecx, dword [0x44ba64]
call fcn.00433ab5
mov edi, eax
test edi, edi
jne 0x433f0e
call dword [ebp + 8]
mov ecx, dword [0x44ba64]
mov edi, eax
push edi
push dword [esi]
call fcn.00433c95
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x434ab5
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ecx]
push esi
push edi
mov dword [ebp - 8], ecx
call dword [eax + 0x38]
mov edi, eax
mov eax, dword [edi + 4]
jmp 0x434ab7
add eax, 8
cmp dword [eax], 0
jne 0x434ab4
lea esi, [eax + 4]
jmp 0x434aeb
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax]
test eax, eax
je 0x434ae8
mov ecx, dword [eax]
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push dword [ebp + 8]
push eax
call dword [ecx]
test eax, eax
jne 0x434ae8
mov eax, dword [ebp - 4]
test eax, eax
jne 0x434af8
add esi, 8
cmp dword [esi], 0xffffffff
jne 0x434ac1
mov edi, dword [edi]
test edi, edi
jne 0x434aaf
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x434bf0
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push 0
call fcn.0042856a
or dword [esi + 0x70], 0xffffffff
mov eax, esi
pop esi
ret 4

Function at 0x434c95
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x64]
test eax, eax
push edi
je 0x434c6d
mov eax, dword [eax + 0x1c]
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004302bb
push esi
mov dword [esi + 0x7c], eax
call fcn.0042b747
lea eax, [esi + 0x74]
push eax
call sub.oledlg.dll_OleUIBusyA
mov edi, eax
call fcn.0042a491
mov ecx, esi
call fcn.0042a463
cmp dword [ebp - 4], 0
je 0x434ca8
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 2
pop eax
cmp edi, eax
je 0x434ce7
cmp edi, 0x75
jne 0x434cc0
mov dword [esi + 0xa0], 1
jmp 0x434ce4
cmp edi, 0x76
je 0x434cde
cmp edi, 0x77
jne 0x434cd6
mov dword [esi + 0xa0], 3
jmp 0x434ce4
push edi
mov ecx, esi
call fcn.00434bc2
mov dword [esi + 0xa0], eax
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x434e4e
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x437251
call fcn.00417900
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0xffffffcc
test eax, eax
mov dword [ebp - 0x10], esp
je 0x434df8
and dword [eax], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], 0x8000ffff
cmp dword [ebp + 8], 0
je 0x434e34
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x50]
test eax, eax
je 0x434e34
add esi, dword [edi + 0x1c]
dec dword [ebp + 8]
jmp 0x434e0c
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x434e40
sub ebx, dword [ebp + 8]
mov dword [eax], ebx
xor eax, eax
cmp dword [ebp + 8], eax
setne al
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x402ae4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404500
test esi, esi
jne 0x402b1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004045f0
jmp 0x402b38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402998
mov edi, eax
test esi, esi
je 0x402b38
cmp dword [ebx], 0
je 0x402b38
dec esi
jmp 0x402b21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4035ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49c00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403684
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403664
xor eax, eax
push ebp
push 0x40365d
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 0x4036a0
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 0x403664
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x49c00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49c00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404364
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49e04c], 0
je 0x4043c5
cmp word [0x49e220], 0xd7b2
jne 0x40438d
cmp dword [0x49e228], 0
jbe 0x40438d
mov eax, 0x49e21c
call dword [0x49e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49c054
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 0x4043ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49c01c], 0
jne 0x4043e1
push 0
push 0x49c074
push 0x49c054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a2dc
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 0x40a315
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045f0
jmp 0x40a31e
mov eax, ebx
mov edx, esi
call fcn.00404554
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a328
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 0x40a349
mov al, byte [esp]
jmp 0x40a34b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a9d0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a848
mov eax, dword [0x49dc60]
cmp byte [eax], 0
je 0x40aa38
mov eax, dword [0x49da64]
call fcn.00402eb0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408f68
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 0x40aa80
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40aa6e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49da1c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49e718]
call fcn.00405d6c
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 0x40b63c
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 0x40b6a0
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.00404768
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408c2c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b6a7
lea eax, [ebp - 0xc]
call fcn.00404500
ret
Function at 0x41e5b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49ea24
cmp dword [edi], 0
jne 0x41e634
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49ea20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49c50c
mov ecx, 2
call fcn.00402958
mov edx, 0x41e590
lea eax, [esi + 5]
call fcn.0041e5b0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e5b0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41e609
mov dword [0x49ea20], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41fbe0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41fbe6
ret

Function at 0x42210c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42215d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422144
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422134
jmp 0x42215d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x422145
pop ebx
mov esp, ebp
pop ebp
ret