joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4117a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x4117c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4117c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4117b8
mov eax, 1
add ebx, ebx
jne 0x4117db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4117d0
jne 0x4117ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4117d0
xor ecx, ecx
sub eax, 3
jb 0x411800
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411872
mov ebp, eax
add ebx, ebx
jne 0x41180b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411818
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41183c
inc ecx
add ebx, ebx
jne 0x411828
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41181d
jne 0x411839
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41181d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41185c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41184d
jmp 0x4117be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41185c
add edi, ecx
jmp 0x4117be
pop esi
mov edi, esi
mov ecx, 0x251
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41187a
cmp byte [edi], 0
jne 0x41187a
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 0x41187f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x4118ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11fbc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1205c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4118ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12060]
or eax, eax
je 0x4118e8
mov dword [ebx], eax
add ebx, 4
jmp 0x4118c9
call dword [esi + 0x12068]
mov ebp, dword [esi + 0x12064]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x411922
sub esp, 0xffffff80
jmp 0x404319
Function at 0x402c50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40a264
call sym._EnterCriticalSection_4
mov ebx, dword [0x40a25c]
sub esp, 4
test ebx, ebx
je 0x402c9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402c94
test esi, esi
je 0x402c94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402c70
mov dword [esp], 0x40a264
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402e80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402fa8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402f0e
cmp eax, 4
jne 0x402f30
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402f1e
cmp edx, 4
je 0x402f1e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402e80
Function at 0x401000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42962b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x436ddc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.ActiveScriptSite.0
mov dword [esi + 4], vtable.ActiveScriptSite.1.0
xor edi, edi
mov dword [esi + 8], vtable.CArray_class_ExposedObject___class_ExposedObject__.0
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], edi
call fcn.00407eeb
mov eax, 1
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x401cf0
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 0x401d09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401d44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401d40
lea ebx, [ebx]
cmp esi, eax
jae 0x401d44
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401d30
cmp esi, eax
jb 0x401d4a
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 0x403340
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.004111b9
test eax, eax
jne 0x40337a
push str.Fatal_Error:_MFC_initialization_failed_n
call fcn.00418454
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
ret 0x10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x248
call fcn.00407e3b
add esp, 4
test eax, eax
je 0x40339d
push eax
call fcn.00404310
mov esi, eax
jmp 0x40339f
xor esi, esi
mov ebx, 1
cmp dword [0x43a314], ebx
jle 0x4033fd
lea edi, [esi + 0x220]
mov eax, dword [0x43a31c]
mov ecx, dword [eax + ebx*4]
push ecx
lea ecx, [esp + 0x10]
call fcn.00402270
mov eax, dword [edi + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov ecx, edi
call fcn.0040835d
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, dword [0x43a314]
jl 0x4033b2
push esi
call fcn.00404940
mov ecx, dword [esi + 0x238]
mov edx, dword [esi + 0x234]
push ecx
push edx
call fcn.004036b0
push eax
call fcn.004039a0
push 0x42f228
mov ecx, esi
call fcn.00410077
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.WScript
call fcn.00403520
call fcn.004036b0
push eax
call fcn.00403830
mov esi, dword [esi + 0x244]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
mov dword [esp + 0x10], esp
mov ebx, esp
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x403479
cmp eax, dword [esi]
jne 0x403479
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4034b1
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x403492
call fcn.00402020
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax + 2]
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00417c82
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.004036b0
mov ebx, eax
call fcn.00403c70
call fcn.004036b0
mov esi, eax
lea ecx, [esi + 4]
call fcn.00411269
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4034e0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4034ef
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4034fe
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x54], 0
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10
Function at 0x404940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429c43
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x436ddc]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x436ddc]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x244]
mov dword [esp + 0x1c], eax
call fcn.00401f30
push 2
push 0x4302cc
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x404b5d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404b5d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404b5d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea esi, [edi + 0x28]
push 0x400
lea ecx, [esp + 0x28]
lea edi, [eax - 0x28]
call fcn.00412eb7
push 0
push edi
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0xd4], 0
call fcn.00412eec
push 0
push 0x1000
push 1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040f5e9
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x60]
mov byte [esp + 0xdc], 1
call fcn.00407de0
mov esi, eax
call fcn.00407de0
mov esi, eax
call fcn.00407de0
mov esi, eax
call fcn.00407de0
mov esi, eax
call fcn.00407de0
mov edi, dword [esp + 0x18]
push edi
call fcn.00407e6a
add esp, 4
mov ebx, eax
push edi
push ebx
lea ecx, [esp + 0x54]
call fcn.0040ed80
lea ecx, [esp + 0x4c]
call fcn.0040f432
push 0x1335ca
call fcn.0041883b
add esp, 4
mov byte [esp + 0xb4], 0
xor esi, esi
lea esp, [esp]
call fcn.0041884d
cdq
mov ecx, 0x3e
idiv ecx
cmp dl, 0x1a
jae 0x404ab7
add dl, 0x41
jmp 0x404ac8
cmp dl, 0x34
jae 0x404ac1
add dl, 0x47
jmp 0x404ac8
cmp dl, cl
jae 0x404acf
sub dl, 4
mov byte [esp + esi + 0x94], dl
inc esi
cmp esi, 0x20
jl 0x404aa0
lea edx, [esp + 0x94]
mov eax, edi
mov edi, dword [esp + 0x1c]
push edx
push ebx
mov esi, edi
call fcn.00407430
mov esi, eax
test esi, esi
je 0x404b03
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404af4
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x244]
call fcn.00402120
push esi
call fcn.00407e75
push ebx
call fcn.00407e75
mov ecx, dword [esp + 0x1c]
xor eax, eax
add esp, 8
cmp dword [esp + 0x20], eax
mov dword [edi + 0x23c], ecx
sete al
lea ecx, [esp + 0x4c]
mov byte [esp + 0xc8], 0
mov dword [edi + 0x238], eax
call fcn.0040f5ab
lea ecx, [esp + 0x24]
mov dword [esp + 0xc8], 0xffffffff
call fcn.0041324d
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00417c73
mov esp, ebp
pop ebp
ret 4
Function at 0x407390
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4073a0
sub eax, edx
mov dword [esp + 0x14], eax
lea edi, [ebp + 0x20]
mov eax, ebp
xor ecx, ecx
sub eax, edi
lea ebx, [eax + 0x120]
lea esp, [esp]
xor edx, edx
mov eax, ecx
div dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea esi, [edi + ecx]
mov dl, byte [edx + eax]
mov byte [esi], cl
inc ecx
cmp ecx, 0xff
mov byte [ebx + esi], dl
jle 0x4073c0
xor eax, eax
mov ecx, edi
mov esi, 0x100
lea esp, [esp]
mov dl, byte [ecx]
movzx edi, byte [ecx + 0x100]
movzx ebx, dl
add edi, eax
add ebx, edi
mov eax, ebx
and eax, 0x800000ff
jns 0x407410
dec eax
or eax, 0xffffff00
inc eax
movzx eax, al
mov bl, byte [eax + ebp + 0x20]
mov byte [ecx], bl
inc ecx
sub esi, 1
mov byte [eax + ebp + 0x20], dl
jne 0x4073f0
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x407430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
mov ebx, eax
push edi
lea ebp, [ebx + 1]
push ebp
call fcn.00407e6a
push ebp
mov edi, eax
push 0
push edi
mov dword [esp + 0x1c], edi
call fcn.00419550
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
push esi
call fcn.00407390
test ebx, ebx
jbe 0x4074e4
mov ebp, dword [esp + 0x14]
xor eax, eax
xor ecx, ecx
sub ebp, edi
mov dword [esp + 0x18], ebx
inc eax
and eax, 0x800000ff
jns 0x407481
dec eax
or eax, 0xffffff00
inc eax
movzx eax, al
mov dl, byte [eax + esi + 0x20]
movzx ebx, dl
add ecx, ebx
and ecx, 0x800000ff
jns 0x40749d
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, cl
mov bl, byte [ecx + esi + 0x20]
mov byte [eax + esi + 0x20], bl
mov byte [ecx + esi + 0x20], dl
movzx ebx, byte [eax + esi + 0x20]
movzx edx, dl
add ebx, edx
and ebx, 0x800000ff
jns 0x4074c6
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edx, byte [ebx + esi + 0x20]
xor dl, byte [edi + ebp]
inc edi
sub dword [esp + 0x18], 1
mov byte [edi - 1], dl
jne 0x407472
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x41078d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x436ddc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x410825
push 0x42c8ec
push 4
push eax
call fcn.0041886f
push eax
call fcn.00401da0
add esp, 0x10
push ebx
push edi
call fcn.004194d8
mov edi, dword [eax]
call fcn.004194d8
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00419475
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004194d8
cmp dword [eax], ebx
je 0x41083c
call fcn.004194d8
push dword [eax]
call fcn.00408700
pop ecx
jmp 0x410843
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4107d0
jmp 0x4108ca
call fcn.004194d8
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x4108c6
cmp dword [ebp - 0x234], esi
jae 0x4108c6
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00419550
add esp, 0xc
push 0x42b820
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4108b5
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4108b5
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4108b5
push ebx
push ebx
push esi
jmp 0x4108be
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4108c8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00417c73
leave
ret

Function at 0x417c73
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436ddc]
jne 0x417c7d
repz ret
jmp fcn.0041b476
Function at 0x4222c0
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.0041ae85
and dword [ebp - 4], 0
cmp dword [0x43ae50], 0
mov ebx, eax
jne 0x422371
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422422
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422422
push eax
call fcn.0041ae13
mov dword [esp], 0x42e05c
push edi
mov dword [0x43ae50], eax
call esi
push eax
call fcn.0041ae13
mov dword [esp], 0x42e048
push edi
mov dword [0x43ae54], eax
call esi
push eax
call fcn.0041ae13
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ae58], eax
call esi
push eax
call fcn.0041ae13
pop ecx
mov dword [0x43ae60], eax
test eax, eax
je 0x422371
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ae13
pop ecx
mov dword [0x43ae5c], eax
mov eax, dword [0x43ae5c]
cmp eax, ebx
je 0x4223c9
cmp dword [0x43ae60], ebx
je 0x4223c9
push eax
call fcn.0041ae8e
push dword [0x43ae60]
mov esi, eax
call fcn.0041ae8e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4223c9
test edi, edi
je 0x4223c9
call esi
test eax, eax
je 0x4223c0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4223c0
test byte [ebp - 0xc], 1
jne 0x4223c9
or dword [ebp + 0x10], 0x200000
jmp 0x422402
mov eax, dword [0x43ae54]
cmp eax, ebx
je 0x422402
push eax
call fcn.0041ae8e
pop ecx
test eax, eax
je 0x422402
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422402
mov eax, dword [0x43ae58]
cmp eax, ebx
je 0x422402
push eax
call fcn.0041ae8e
pop ecx
test eax, eax
je 0x422402
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ae50]
call fcn.0041ae8e
pop ecx
test eax, eax
je 0x422422
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422424
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402754
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.00403a10
test esi, esi
jne 0x40278a
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.00403b00
jmp 0x4027a8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402668
mov edi, eax
test esi, esi
je 0x4027a8
cmp dword [ebx], 0
je 0x4027a8
dec esi
jmp 0x402791
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402cf0
Capabilities:
Query or enumerate registry value

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

Function at 0x403894
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x420044], 0
je 0x4038f5
cmp word [0x420218], 0xd7b2
jne 0x4038bd
cmp dword [0x420220], 0
jbe 0x4038bd
mov eax, 0x420214
call dword [0x420230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41e04c
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 0x40391c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41e018], 0
jne 0x403911
push 0
push 0x41e06c
push 0x41e04c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404ab4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404ce4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404b37
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404ce4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404b37
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404d00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404bc0
xor eax, eax
push ebp
push 0x404bb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004048fc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b9e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404d20
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b9e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404bc0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404cda
cmp byte [ebp - 0xd], 0
jne 0x404c07
cmp byte [ebp - 0x12], 0
je 0x404cda
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404c20
dec ebx
cmp byte [ebx], 0x2e
je 0x404c2f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404c1f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404cda
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404c6c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404cda
cmp byte [ebp - 0xd], 0
je 0x404cda
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404cda
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret