joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0070d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x70d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x70d06a
add dl, dl
jne 0x70d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x70d0dc
xor eax, eax
add dl, dl
jne 0x70d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x70d17d
add dl, dl
jne 0x70d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x70d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x70d075
mov eax, 1
add dl, dl
jne 0x70d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x70d0e1
sub eax, ebx
mov ebx, 1
jne 0x70d128
mov ecx, 1
add dl, dl
jne 0x70d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x70d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x70d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x70d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x70d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x70d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x70d136
cmp eax, 0x7d00
jae 0x70d16d
cmp eax, 0x500
jb 0x70d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x70d075
cmp eax, 0x7f
ja 0x70d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x70d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x70d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x70d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x181f0ea
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x181f153
mov word [esp], bp
pop word [esp]
push bp
mov dword [esp + 8], ebx
call fcn.0181f0ec
push dword [esp + 6]
mov dword [esp + 0x14], edi
jmp 0x181f1af
lea esp, [esp + 0x14]
jmp 0x181f1de
pushfd
jmp 0x181f005

Function at 0x181f125
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 7], cl
jmp 0x181f1c7
push dword [esp + 2]
jno 0x181f166
push dword [esp + 6]
mov dword [esp + 0x14], edi
lea esp, [esp + 0x14]
jmp 0x181f1de
mov byte [esp + 4], al
mov dword [esp], edi
lea esp, [esp + 2]
mov dword [esp + 0xc], esi
pushfd
mov word [esp + 1], cx
jmp 0x181f185

Function at 0x181f2b6
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ecx
retf 0x3f58
jmp fcn.0181f25e
neg cl
ja 0x181f287
mov dh, bl
call fcn.0181f29f
jne 0x181f24d
and al, 3

Function at 0x182d507
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
jmp 0x181384f
xor ecx, ecx
cmp dword [esp + 4], ecx
jbe 0x1813869
push esi
movzx esi, byte [ecx + edx]
rol eax, 7
xor eax, esi
inc ecx
cmp ecx, dword [esp + 8]
jb 0x1813858
pop esi
jmp 0x1813874
ret 4
jmp 0x1813842
Function at 0x187b32e
Capabilities:
Execute anti-debugging instructions

Disassembly:
add byte [eax], al
add byte [esi - 0x75], ah
into
xchg cx, ax
mov cx, bp
jmp 0x187b3c6
push sp
call 0x187b2f4
adc ch, byte [eax + 0xfaeb824]
cwde
or eax, 0x1d4e65f6
js 0x187b310
dec ecx
insb byte es:[edi], dx
and byte [0x826b34ec], dl
cmp eax, 0x8a078f0c
sub al, 0x24
mov ecx, eax
xchg cl, ch
jmp 0x18393ff
setp cl
xchg dword [esp + 0x20], ebp
mov eax, ebx
not cx
push dword [esp + 0x20]
ret 0x24

Function at 0x18c30d9
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.018c2011
push dword [esp + 7]
lea esp, [esp + 2]
mov dword [esp + 0xc], edi
lea esp, [esp + 0xc]
jmp 0x18c30e1
push sp
push dword [esp + 5]
jmp 0x18c30c3
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x18c3158
mov eax, dword [eax + 8]
jmp 0x18c3196
mov eax, dword [eax]
jmp 0x18c3142
push eax
jmp 0x18c200c
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x647a3230
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x13f0619b
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x401ae8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebx, section..text
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
sub ebx, 0x1000
mov dword [0x4028f4], ebx
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401b11
push esp
mov eax, str.contents
mov dword [ebp - 4], eax
lea eax, [0x401187]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x4028f4]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
xor eax, eax
push eax
push dword [0x4028f4]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x402904], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x402904]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401bc9
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401bb0
pop ebp
ret 0x10
Function at 0x40199b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
xor ecx, ecx
mov dword [ebp - 4], ecx
cld

Function at 0x4236f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
jmp 0x42370a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x423711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x423700
mov eax, 1
add ebx, ebx
jne 0x423723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x423718
jne 0x423734
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423718
xor ecx, ecx
sub eax, 3
jb 0x423748
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4237ba
mov ebp, eax
add ebx, ebx
jne 0x423753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423784
inc ecx
add ebx, ebx
jne 0x423770
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423765
jne 0x423781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423765
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4237a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423795
jmp 0x423706
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4237a4
add edi, ecx
jmp 0x423706
pop esi
mov edi, esi
mov ecx, 0x51c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4237c2
cmp byte [edi], 7
jne 0x4237c2
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 0x4237c7
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x423836
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2bff4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c060]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4237f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2c068]
or eax, eax
je 0x423830
mov dword [ebx], eax
add ebx, 4
jmp 0x423811
call dword [esi + 0x2c064]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x423867
cmp al, 0xef
ja 0x42385a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42383c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x423849
mov ebp, dword [esi + 0x2c06c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42389b
sub esp, 0xffffff80
jmp 0x40207d
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..pdata
nop
mov ebx, 0x408ecc
mov ecx, 0x22de7d89
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x55b27d17
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40224e
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor esi, esi
push 0x18
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
push 0xc
lea eax, [ebp - 0x14]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push esi
push esi
push esi
push 1
pop edi
push edi
push str.WinHTTP_AutoProxy
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x4022a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpen_failed.Error:_d
call fcn.00401598
pop ecx
xor eax, eax
pop ecx
jmp 0x40231c
lea ecx, [ebp - 0x14]
push ebx
mov ebx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 2
push ecx
push str.http:__www.microsoft.com_
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x4022e9
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], edi
jmp 0x40230f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x2ee6
jne 0x402300
push ebx
push str._S_Url_unvalid_not_http:___
jmp 0x402308
call esi
push eax
push str.WinHttpGetProxyForUrl_failed.Error:_d
call fcn.00401598
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x402395
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x14
or dword [esp], 0xffffffff
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x10
lea eax, [esp + 0x18]
push ebp
mov esi, ecx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x404800], ebp
mov word [esp + 0x14], 2
jle 0x402476
mov ebx, 0x404804
mov edi, 0x40481c
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x402450
mov ax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40246e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274d
je 0x402437
cmp eax, 0x2751
je 0x402437
push eax
push str.localtoproxy_sock
push str._s_d_n
call fcn.00401598
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
inc ebp
inc edi
inc edi
add ebx, 4
cmp ebp, dword [0x404800]
jl 0x4023d2
jmp 0x402476
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.localtoproxy_sock_create_error__error_num:
push str._s_d_n
jmp section..htext
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4020ef
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x4072d4
cmp dword [edi], ebx
je 0x402194
push str._mozilla.org_observer_service_1
mov edx, 0x4079cc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.004055c8
mov eax, dword [ebp - 4]
test eax, eax
je 0x402174
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_qm
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_telemetry
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.00405677
mov eax, dword [ebp - 4]
test eax, eax
je 0x402194
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4021cb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x4021cb
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.00404c47
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.0040533b
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4021e7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4021f4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x402200
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x402210
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x402e4c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4032d4
Capabilities:
Query or enumerate registry value

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

Function at 0x404054
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51804c], 0
je 0x4040b5
cmp word [0x518220], 0xd7b2
jne 0x40407d
cmp dword [0x518228], 0
jbe 0x40407d
mov eax, 0x51821c
call dword [0x518238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x513070
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 0x4040dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x513034], 0
jne 0x4040d1
push 0
push 0x513068
push 0x513070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404228
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.004027b8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x51804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4041f0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405c9c
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 0x405ecc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d1f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ecc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d1f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ee8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405da8
xor eax, eax
push ebp
push 0x405da1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ae4
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 0x405d86
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405f08
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d86
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 0x405da8
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 0x405ec2
cmp byte [ebp - 0xd], 0
jne 0x405def
cmp byte [ebp - 0x12], 0
je 0x405ec2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405e08
dec ebx
cmp byte [ebx], 0x2e
je 0x405e17
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405e07
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405ec2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e54
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 0x405ec2
cmp byte [ebp - 0xd], 0
je 0x405ec2
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 0x405ec2
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