joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc870
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x51e264
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x51e27c]
sub esp, 4
test ebx, ebx
je 0x4bc8c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4bc8be
test esi, esi
je 0x4bc8be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4bc8a0
mov dword [esp], 0x51e264
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4bcab0
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x4bcac0
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x4bcabd
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret
Function at 0x5227e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x522805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x522878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x52283a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x52286d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x52286b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x522831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x5227fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
mov ecx, 0x5ef07b8f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x56df078e
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4020e0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push edi
push 0
push 0
push dword [ebp + 8]
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
pop edi
xor ebx, ebx
test edi, edi
jne 0x40210d
mov ecx, esi
call fcn.00402180
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
js 0x402172
mov eax, dword [esi]
push esi
pop esi
push 1
pop ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x40212a
push edi
push esi
pop ecx
call fcn.00402530
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
or eax, eax
jne 0x402140
xor ecx, ecx
jmp 0x402152
push dword [eax - 8]
push eax
call fcn.004036ac
push eax
pop ecx
add esp, 8
test ecx, ecx
js 0x402172
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x402172
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
pop edi
sub edx, edx
pushfd
xor ebx, ebx
inc ebx
popfd
mov word [eax + ecx*2], dx
pop esi
push ebx
pop eax
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.00402bb0
int3

Function at 0x402a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push esp
pop ebp
push ebx
push edi
push edx
pop edi
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402a99
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
pop esi
test esi, esi
je 0x402ad4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402ad0
lea ebx, [ebx]
cmp esi, edx
jae 0x402ad4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402ac0
cmp esi, edx
jb 0x402adb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
sub eax, eax
cmp word [esi], ax
cmove esi, eax
push esi
pop eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402e0f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x4127f0
call fcn.00404cf0
call fcn.004049c6
movzx esi, ax
push 2
call fcn.004047c6
pop ecx
mov eax, 0x5a4d
cmp word [sym.imp.crypt32.dll_CertDeleteCRLFromStore], ax
je 0x402cc6
xor ebx, ebx
jmp 0x402cf9
mov eax, dword [0x40003c]
cmp dword [eax + sym.imp.crypt32.dll_CertDeleteCRLFromStore], 0x4550
jne 0x402cc2
mov ecx, 0x10b
cmp word [eax + sym.imp.shlwapi.dll_StrStrNIW], cx
jne 0x402cc2
sub ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x402cf9
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004041e8
test eax, eax
jne 0x402d0d
push 0x1c
call fcn.00402de8
pop ecx
call fcn.00403c4b
or eax, eax
jne 0x402d1e
push 0x10
call fcn.00402de8
pop ecx
call fcn.004048ad
and dword [ebp - 4], 0
jmp 0x4c11f8
call fcn.00404813
jmp 0x402c98
Function at 0x100018b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023d70
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xb0], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x98
mov ebx, eax
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.1000cf20
add esp, 8
lea ecx, [ebp - 0xa8]
call fcn.10006870
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x1002cf00]
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xb4], 0x42396d
nop word [eax + eax]
mov cl, byte [ebp - 0xc4]
xor byte [ebp + eax - 0xc3], cl
inc eax
cmp eax, 0x12
jb 0x10001940
lea edx, [ebp - 0xc3]
mov byte [ebp - 0xb1], 0
lea ecx, [ebp - 0xa8]
call fcn.10004890
mov esi, eax
push 0
push 8
mov eax, dword [esi]
mov eax, dword [eax + 4]
or dword [eax + esi + 0x14], 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + esi + 0x14], eax
lea eax, [ebp - 0xd8]
push eax
call fcn.10009d65
add esp, 0xc
mov ecx, dword [eax]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
mov eax, dword [eax + 4]
push ebx
mov byte [eax + esi + 0x40], 0x30
call fcn.10002030
mov ecx, eax
mov byte [ebp - 0xaa], 0
mov dl, 0x38
mov byte [ebp - 0xaa], 0
mov al, 0x65
mov byte [ebp - 0xac], dl
xor al, dl
lea edx, [ebp - 0xab]
mov byte [ebp - 0xab], al
call fcn.10004890
push edi
lea ecx, [ebp - 0xa8]
call fcn.10004490
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xac], eax
lea ecx, [ebp - 0xa4]
call fcn.100067a0
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax + 4]
lea ecx, [edx - 8]
mov dword [ebp + edx - 0xac], ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.10009959
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000b0d9
mov esp, ebp
pop ebp
ret
Function at 0x10009270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov byte [ebp - 0x10], 0x6d
mov al, 3
xor al, byte [ebp - 0x10]
mov bl, 1
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 9
push esi
mov esi, ecx
mov byte [ebp - 1], ah
mov bh, ah
mov byte [ebp - 6], 0
mov dh, dl
mov byte [ebp - 6], 0
xor dl, al
xor bl, al
xor ah, al
mov byte [ebp - 0xd], dl
xor dh, al
mov byte [ebp - 0xb], ah
xor bh, al
mov byte [ebp - 0xc], bl
mov cl, 0x19
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 8], bh
mov ch, 0x43
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0xf]
push edi
push eax
mov byte [ebp - 0xa], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x10009343
movaps xmm0, xmmword [0x1002ced0]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x160c300a
mov dword [ebp - 0x14], 0x501
nop word [eax + eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x10009300
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10009343
test esi, esi
jne 0x1000932e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009350
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1000938e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10009392
cmp edx, esi
jne 0x10009377
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x100093b2
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100093b6
cmp edx, esi
jne 0x1000939b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x100093d6
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100093da
cmp edx, esi
jne 0x100093bf
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010168
Capabilities:
Parse pe header

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

Function at 0x100177d2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10029030
push 0x10029028
push str.FlsAlloc
push 0x1f
call fcn.1001769a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017806
push dword [ebp + 8]
mov ecx, esi
call dword [0x10025168]
call esi
jmp 0x1001780c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10017850
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10029040
push 0x10029038
push str.FlsGetValue
push 0x21
call fcn.1001769a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017887
push dword [ebp + 8]
mov ecx, esi
call dword [0x10025168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001788f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10029048
push 0x10029040
push str.FlsSetValue
push 0x22
call fcn.1001769a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100178c9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10025168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001bd22
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 0x1001bdbf
push ebx
push esi
call fcn.1001bceb
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.1001abb3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001bd6c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001bdbe
push edi
push eax
call fcn.10017e81
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001bd8c
call fcn.10016e9a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001bdbd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001abb3
add esp, 0x20
test eax, eax
jne 0x1001bdab
push edi
call fcn.10016e9a
jmp 0x1001bdb3
push ebx
call fcn.10016e9a
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 0x1001def6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001543c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001df65
cmp esi, dword [ebp - 4]
je 0x1001df60
cmp dword [ebp + 0xc], 0
je 0x1001df60
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001df3d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001da48
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001df67
xor eax, eax
inc eax
jmp 0x1001df67
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001dfcc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1001543c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1001543c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1001e043
cmp word [ecx], dx
je 0x1001e043
mov eax, dword [0x10029714]
push edi
dec eax
push eax
push 0x10029600
call fcn.1001df6b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001e0b6
cmp word [eax], dx
je 0x1001e0b6
mov eax, dword [edi]
test eax, eax
je 0x1001e067
cmp word [eax], dx
je 0x1001e067
lea eax, [ebp - 0x10]
push eax
call fcn.1001d94e
jmp 0x1001e070
lea eax, [ebp - 0x10]
push eax
call fcn.1001d9e9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001e0e0
mov eax, dword [0x100295fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100292f0
call fcn.1001df6b
add esp, 0xc
test al, al
je 0x1001e0e0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001e0ab
cmp word [eax], di
je 0x1001e0ab
lea eax, [ebp - 0x10]
push eax
call fcn.1001d94e
pop ecx
jmp 0x1001e0e2
lea eax, [ebp - 0x10]
push eax
call fcn.1001d9e9
jmp 0x1001e0a8
mov eax, dword [edi]
test eax, eax
je 0x1001e0cd
cmp word [eax], dx
je 0x1001e0cd
lea eax, [ebp - 0x10]
push eax
call fcn.1001d903
pop ecx
jmp 0x1001e0e0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001e1ab
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001ddf0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001e1ab
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001e1ab
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001e1ab
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001e138
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100179cf
test ebx, ebx
je 0x1001e1a6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100179cf
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001e1ab
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001e1ab
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10021b51
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001e1ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b0d9
leave
ret
Function at 0x10023810
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002383d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002383d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x438c95
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ebx
sub edx, 0xd79fc972
call fcn.00438cee
mov ecx, 0x43ca61b6
sub ecx, 1
xor dword [esi], ebx
add ecx, 1
sub ecx, 0xc74f3c6
dec ecx
inc esi
push 0xd8fbac0c
pop edx
add edx, 0x51919923
mov edx, 0xcfe9ac76
cmp esi, edi
jne fcn.00438c95
add edx, 0x6499ed66
or edx, edx
sub edx, 0x116c9ee0
ret
Function at 0x402e4c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045a4
test esi, esi
jne 0x402e83
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404694
jmp 0x402ea4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ce8
mov dword [esp], eax
test esi, esi
je 0x402ea4
cmp dword [ebx], 0
je 0x402ea4
dec esi
jmp 0x402e8b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403124
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x488008], 0x8088405
inc edx
mov dword [ebx + 0x488008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403588
Capabilities:
Query or enumerate registry value

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

Function at 0x40439c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a04c], 0
je 0x4043fd
cmp word [0x48a220], 0xd7b2
jne 0x4043c5
cmp dword [0x48a228], 0
jbe 0x4043c5
mov eax, 0x48a21c
call dword [0x48a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x488070
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 0x404424
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x488034], 0
jne 0x404419
push 0
push 0x488068
push 0x488070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404558
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.00402a88
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48a04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404520
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc