joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40411b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004030d3
and dword [ebp - 0x14], 0
cmp dword [0x4450e4], 0
mov dword [ebp - 0x18], eax
jne 0x4041ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404276
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404276
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4450e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4450e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4450ec], eax
call edi
push eax
call esi
mov dword [0x4450f4], eax
test eax, eax
je 0x4041ce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4450f0], eax
mov eax, dword [0x4450f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404227
cmp dword [0x4450f4], ecx
je 0x404227
push eax
call esi
push dword [0x4450f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404227
test ebx, ebx
je 0x404227
call edi
test eax, eax
je 0x40421e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40421e
test byte [ebp - 8], 1
jne 0x404227
or dword [ebp + 0x10], 0x200000
jmp 0x40425a
mov eax, dword [0x4450e8]
cmp eax, dword [ebp - 0x18]
je 0x40425a
push eax
call esi
test eax, eax
je 0x40425a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40425a
mov eax, dword [0x4450ec]
cmp eax, dword [ebp - 0x18]
je 0x40425a
push eax
call esi
test eax, eax
je 0x40425a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4450e4]
call esi
test eax, eax
je 0x404276
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404278
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404486
leave
ret

Function at 0x404486
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420310]
jne 0x404490
repz ret
jmp fcn.00405356
Function at 0x10003240
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b842
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1003d014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov byte [ebp - 4], 6
mov ecx, eax
imul ecx, dword [esi]
mov word [esi + 0x5c], 0
mov byte [esi + 0x5e], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x10], eax
sub eax, dword [esi + 0x2c]
sar eax, 2
mov dword [ebp + 0xc], eax
vxorps xmm0, xmm0, xmm0
vmovss dword [ebp + 8], xmm0
cmp ecx, eax
jae 0x10003349
mov eax, dword [esi + 0x2c]
lea eax, [eax + ecx*4]
jmp 0x1000337b
jbe 0x1000337e
mov eax, dword [esi + 0x34]
sub eax, dword [esi + 0x2c]
sar eax, 2
cmp ecx, eax
lea eax, [ebp + 8]
push eax
jbe 0x1000336b
push ecx
lea ecx, [esi + 0x2c]
call fcn.10007180
vxorps xmm0, xmm0, xmm0
jmp 0x1000337e
sub ecx, dword [ebp + 0xc]
push ecx
push dword [ebp - 0x10]
call fcn.10006f30
vxorps xmm0, xmm0, xmm0
mov dword [esi + 0x30], eax
mov ecx, dword [esi + 4]
imul ecx, dword [esi]
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
sub edx, eax
sar edx, 2
vmovss dword [ebp + 8], xmm0
cmp ecx, edx
jae 0x1000339d
lea eax, [eax + ecx*4]
jmp 0x100033ce
jbe 0x100033d1
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x38]
sar eax, 2
cmp ecx, eax
lea eax, [ebp + 8]
push eax
jbe 0x100033bf
push ecx
lea ecx, [esi + 0x38]
call fcn.10007180
vxorps xmm0, xmm0, xmm0
jmp 0x100033d1
sub ecx, edx
push ecx
push dword [esi + 0x3c]
call fcn.10006f30
vxorps xmm0, xmm0, xmm0
mov dword [esi + 0x3c], eax
mov ecx, dword [esi + 4]
imul ecx, dword [esi]
mov edx, dword [esi + 0x48]
mov ebx, dword [esi + 0x44]
sub edx, ebx
sar edx, 2
vmovss dword [ebp + 8], xmm0
add ecx, ecx
cmp ecx, edx
jae 0x100033f2
lea eax, [ebx + ecx*4]
jmp 0x1000341a
jbe 0x1000341d
mov eax, dword [esi + 0x4c]
sub eax, ebx
sar eax, 2
cmp ecx, eax
lea eax, [ebp + 8]
push eax
jbe 0x1000340f
push ecx
lea ecx, [esi + 0x44]
call fcn.10007180
jmp 0x1000341d
sub ecx, edx
push ecx
push dword [esi + 0x48]
call fcn.10006f30
mov dword [esi + 0x48], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000b3e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002bf60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1003d014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000e624
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1000dc78
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100175b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000f590
mov eax, dword [0x1003d014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1001c4b3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100175f5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10017751
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100299e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1003e8b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1001efac
mov ecx, dword [esi*4 + 0x1003e8b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1001774a
cmp eax, dword [edi + ecx + 0x24]
jne 0x1001774a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001774a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001efac
add esp, 0x14
test edx, edx
jl 0x1001774a
jg 0x100176c0
test eax, eax
jb 0x1001774a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001774a
jl 0x100176da
cmp dword [ebp - 0x1008], eax
ja 0x1001774a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100176f8
test ebx, ebx
je 0x10017731
cmp ecx, edi
jae 0x10017731
mov al, byte [ecx]
cmp al, 0xd
jne 0x10017712
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001771e
cmp byte [ecx + 1], 0xa
jne 0x1001771e
inc ecx
jmp 0x1001771e
movzx eax, al
movsx eax, byte [eax + 0x1003d290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100176f8
cmp edx, ebx
jne 0x100176f8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001774f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000e603
leave
ret

Function at 0x1001d895
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10030fb8
push 0x10030fb0
push str.FlsAlloc
push 0x1e
call fcn.1001d75f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d8c9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d12c]
call esi
jmp 0x1001d8cf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1001d913
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10030fc8
push 0x10030fc0
push str.FlsGetValue
push 0x20
call fcn.1001d75f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d94a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d12c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001edb8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001ec29

Function at 0x1001f084
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1003e8b8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001f0c4
cmp byte [ebx], 0xa
jne 0x1001f0c4
or byte [eax + edi + 0x28], 4
jmp 0x1001f0c9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1001f1c7
mov al, byte [edx]
cmp al, 0x1a
je 0x1001f1a9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1001f0f8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1001f11d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1001f127
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1001f0da
jmp 0x1001f1c7
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001f1a4
cmp dword [ebp - 0xc], 0
je 0x1001f1a4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1003e8b8]
test byte [eax + edi + 0x28], 0x48
je 0x1001f17e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001f169
mov byte [esi], dl
jmp 0x1001f17a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1003e8b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001f1c7
cmp byte [ebp - 1], 0xa
jne 0x1001f18d
cmp esi, ebx
jne 0x1001f18d
mov byte [esi], 0xa
jmp 0x1001f1c6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001efca
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001f1c7
mov byte [esi], 0xd
jmp 0x1001f1c6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1003e8b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001f1c3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001f1c7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001f1d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1003e8b8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001f213
cmp word [esi], dx
jne 0x1001f213
or byte [edi + eax + 0x28], 4
jmp 0x1001f218
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1001f36b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1001f34b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1001f25a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001f290
cmp eax, edx
jae 0x1001f29c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1001f232
jmp 0x1001f36b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001f347
cmp dword [ebp - 0x14], 0
je 0x1001f347
mov eax, dword [ebx*4 + 0x1003e8b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1001f31f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1001f2e8
mov word [esi], cx
jmp 0x1001f31b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1003e8b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1003e8b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1003e8b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1001f36b
pop ebx
cmp word [ebp - 4], bx
jne 0x1001f330
cmp esi, dword [ebp + 0xc]
jne 0x1001f330
mov word [esi], bx
jmp 0x1001f368
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001efca
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1001f36b
push 0xd
jmp 0x1001f364
mov ecx, dword [ebx*4 + 0x1003e8b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001f362
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001f36b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100230a0
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 0x1002313d
push ebx
push esi
call fcn.10023069
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.10021e31
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100230ea
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002313c
push edi
push eax
call fcn.1001b5c2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002310a
call fcn.10019e67
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002313b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10021e31
add esp, 0x20
test eax, eax
jne 0x10023129
push edi
call fcn.10019e67
jmp 0x10023131
push ebx
call fcn.10019e67
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 0x71f180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x1fd000]
lea eax, [edi + 0x2faf50]
push dword [eax]
mov dword [eax], 0xe665020c
push eax
push edi
or ebp, 0xffffffff
jmp 0x71f1b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x71f1b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f1a8
mov eax, 1
add ebx, ebx
jne 0x71f1cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x71f1dc
jne 0x71f1fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f1fb
dec eax
add ebx, ebx
jne 0x71f1e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x71f1c0
add ebx, ebx
jne 0x71f1f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x71f24d
xor ecx, ecx
sub eax, 3
jb 0x71f213
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x71f282
sar eax, 1
mov ebp, eax
jmp 0x71f21e
add ebx, ebx
jne 0x71f21e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f1ec
inc ecx
add ebx, ebx
jne 0x71f22c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f1ec
add ebx, ebx
jne 0x71f239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x71f22e
jne 0x71f24a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x71f22e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x71f26c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x71f25e
jmp 0x71f1ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x71f26c
add edi, ecx
jmp 0x71f1ae
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x10cd2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x71f28e
cmp byte [edi], 0x2a
jne 0x71f28e
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 0x71f293
lea edi, [esi + 0x312000]
mov eax, dword [edi]
or eax, eax
je 0x71f30b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31f1e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31f3c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x71f2c0
mov ecx, edi
jns 0x71f2ef
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 + 0x31f3c8]
or eax, eax
je 0x71f305
mov dword [ebx], eax
add ebx, 4
jmp 0x71f2dd
call dword [esi + 0x31f3c4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x71f33c
cmp al, 0xef
ja 0x71f32f
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x71f311
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x71f31e
mov ebp, dword [esi + 0x31f3cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x71f370
sub esp, 0xffffff80
jmp 0x5d35f0
Function at 0x402a2c
Capabilities:
Query or enumerate registry value

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

Function at 0x40312c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x405034], 0
je 0x40318d
cmp word [0x405208], 0xd7b2
jne 0x403155
cmp dword [0x405210], 0
jbe 0x403155
mov eax, 0x405204
call dword [0x405220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x404054
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 0x4031b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x404018], 0
jne 0x4031a9
push 0
push 0x40404c
push 0x404054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403440
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4034a6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403330
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402920
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403490
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4034ad
lea eax, [ebp - 0x10]
call fcn.004032b0
ret

Function at 0x403858
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov ecx, edx
dec ecx
test ecx, ecx
jl 0x403879
inc ecx
xor esi, esi
lea eax, [esi + 0x21]
mov edi, 0xff
cdq
idiv edi
xor byte [ebx], dl
inc ebx
inc esi
dec ecx
jne 0x403867
pop edi
pop esi
pop ebx
ret
Function at 0x402a74
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.004045f0
test esi, esi
jne 0x402aaa
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.004046e0
jmp 0x402ac8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402988
mov edi, eax
test esi, esi
je 0x402ac8
cmp dword [ebx], 0
je 0x402ac8
dec esi
jmp 0x402ab1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403694
Capabilities:
Query or enumerate registry value

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

Function at 0x4043f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46f048], 0
je 0x404451
cmp word [0x46f21c], 0xd7b2
jne 0x404419
cmp dword [0x46f224], 0
jbe 0x404419
mov eax, 0x46f218
call dword [0x46f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46d070
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 0x404478
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46d030], 0
jne 0x40446d
push 0
push 0x46d068
push 0x46d070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4045a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402714
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46f049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40456c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc