joyce8/EMBER2024-capa huggingface dataset:
Function at 0x533f60
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x533f7d
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x53408f
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x533fb0
je 0x533ffc
sub ecx, 0x2b
je 0x533ff2
sub ecx, 4
je 0x533ff7
dec ecx
sub ecx, 0xa
jb 0x533fe1
jmp 0x533fff
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x533fc2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x533fd0
jmp 0x533fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x533fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x533fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x533fff
mov byte [eax], 0x3e
jmp 0x533fff
mov byte [eax], 0x3f
jmp 0x533fff
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x533f8f
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x53404f
cmp byte [esp + 3], 0xff
jne 0x53404f
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x534087
cmp dl, 0xff
je 0x534087
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x533f88
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x53411c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x67a7a0
mov eax, ebx
mov edx, 8
test al, 1
je 0x534138
shr eax, 1
xor eax, 0xedb88320
jmp 0x53413a
shr eax, 1
dec edx
jne 0x53412b
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x534124
pop ebx
ret
Function at 0x534150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x534159
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0052ba38
xor eax, eax
push ebp
push 0x534239
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0053411c
mov eax, dword [0x679e0c]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.00529e7c
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.0052a218
call fcn.00529ba8
test eax, eax
jne 0x534216
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.00529fcc
mov dx, word [ebp - 8]
test dx, dx
jbe 0x534210
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x67a7a0]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x5341ec
cmp dword [ebp - 8], 0
jne 0x5341c3
lea eax, [ebp - 0x154]
call fcn.00529fec
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x534240
lea eax, [ebp - 4]
call fcn.0052b588
ret

Function at 0x53f718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x53f738
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x53f726
pop edi
pop esi
pop ebx
ret
Function at 0x547fd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
mov ebx, 0x67acb4
mov eax, ebp
shr eax, 1
and eax, 0xff
mov dword [esp], eax
mov esi, ebp
and esi, 1
mov eax, ebp
and eax, 0x200
shr eax, 8
or esi, eax
mov edx, dword [esi*4 + 0x66f670]
mov eax, dword [esi*4 + 0x66f6b0]
xor eax, dword [esp]
call fcn.00547f70
mov edi, eax
shl edi, 0x18
mov eax, edi
call fcn.00547fac
mov dword [ebx], eax
mov edx, dword [esi*4 + 0x66f680]
mov eax, dword [esi*4 + 0x66f6c0]
xor eax, dword [esp]
call fcn.00547f70
mov edi, eax
shl edi, 0x10
mov eax, edi
call fcn.00547fac
mov dword [ebx + 0x1000], eax
mov edx, dword [esi*4 + 0x66f690]
mov eax, dword [esi*4 + 0x66f6d0]
xor eax, dword [esp]
call fcn.00547f70
mov edi, eax
shl edi, 8
mov eax, edi
call fcn.00547fac
mov dword [ebx + 0x2000], eax
mov edx, dword [esi*4 + 0x66f6a0]
mov eax, dword [esi*4 + 0x66f6e0]
xor eax, dword [esp]
call fcn.00547f70
mov edi, eax
mov eax, edi
call fcn.00547fac
mov dword [ebx + 0x3000], eax
inc ebp
add ebx, 4
cmp ebp, 0x400
jne 0x547fe0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x548138
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x4c]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + ebx*4], edx
inc ebx
cmp ebx, 3
jne 0x54816d
xor ebx, ebx
mov eax, ebx
mov esi, 3
xor edx, edx
div esi
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
xor eax, eax
lea edx, [eax + ecx]
and edx, 3
mov esi, dword [ebp - 8]
lea edx, [esi + edx*2]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dx, word [edx]
and dx, 1
movzx edx, dx
mov esi, dword [ebp - 0x18]
mov esi, dword [esi]
add esi, esi
or esi, edx
mov edi, dword [ebp - 0x18]
mov dword [edi], esi
mov esi, dword [ebp - 0x1c]
movzx esi, word [esi]
shr esi, 1
xor dx, 1
shl edx, 0xf
or si, dx
mov edx, dword [ebp - 0x1c]
mov word [edx], si
inc eax
cmp eax, 4
jne 0x548193
inc ebx
cmp ebx, 0xf
jne 0x54817d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x54814f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
invalid
invalid

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x61580ebc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x43e338d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4a21c7
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x4a21e4
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4a21d5
add dl, dl
jne 0x4a21ef
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4a223b
xor eax, eax
add dl, dl
jne 0x4a21fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4a22d8
add dl, dl
jne 0x4a220b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4a2216
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4a2221
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4a222c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4a2236
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x4a21db
mov eax, 1
add dl, dl
jne 0x4a2249
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4a2254
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4a2240
sub eax, 2
jne 0x4a2283
mov ecx, 1
add dl, dl
jne 0x4a2269
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4a2274
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4a2260
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4a21db
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4a229a
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4a22a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4a2291
cmp eax, 0x7d00
jae 0x4a22c8
cmp eax, 0x500
jb 0x4a22c3
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4a21db
cmp eax, 0x7f
ja 0x4a22cb
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4a21db
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4a22f4
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4a21db
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret
Function at 0x40190d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x401350]
jne 0x401bb2
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x404160], eax
mov dword [0x40415c], ecx
mov dword [0x404158], edx
mov dword [0x404154], ebx
mov dword [0x404150], esi
mov dword [0x40414c], edi
mov word [0x404178], ss
mov word [0x40416c], cs
mov word [0x404148], ds
mov word [0x404144], es
mov word [0x404140], fs
mov word [0x40413c], gs
pushfd
pop dword [0x404170]
mov eax, dword [ebp]
mov dword [0x404164], eax
mov eax, dword [ebp + 4]
mov dword [0x404168], eax
lea eax, [ebp + 8]
mov dword [0x404174], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4040b0], 0x10001
mov eax, dword [0x404168]
mov dword [0x404064], eax
mov dword [0x404058], 0xc0000409
mov dword [0x40405c], 1
mov eax, dword [0x401350]
mov dword [ebp - 0x328], eax
mov eax, dword [0x404024]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x4040a8], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x401354
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x4040a8], 0
jne 0x401c9e
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x401ba8
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x4029d0
call fcn.00401f53
xor ebx, ebx
cmp dword [0x4043ac], ebx
jne 0x401986
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x4043a0
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x4019c0
cmp eax, esi
jne 0x4019b3
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4019c3
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x40199a
xor esi, esi
inc esi
mov eax, dword [0x40439c]
cmp eax, esi
jne 0x4019d6
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x401a11
mov eax, dword [0x40439c]
test eax, eax
jne 0x401a0b
mov dword [0x40439c], esi
push 0x401130
push 0x401124
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x401a11
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401ae8
mov dword [0x404050], esi
mov eax, dword [0x40439c]
cmp eax, esi
jne 0x401a35
push 0x401120
push 0x401118
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x40439c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x401a42
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x4043b0], ebx
je 0x401a63
push 0x4043b0
call fcn.004020a7
pop ecx
test eax, eax
je 0x401a63
push ebx
push 2
push ebx
call dword [0x4043b0]
mov eax, dword [0x404038]
mov ecx, dword [sym.imp.msvcr100.dll___winitenv]
mov dword [ecx], eax
push dword [0x404038]
push dword [0x40403c]
push dword [0x404034]
call fcn.004020a7
add esp, 0xc
mov dword [0x40404c], eax
cmp dword [0x404040], ebx
jne 0x401ace
push eax
call dword [sym.imp.msvcr100.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcr100.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404050], ebx
jne 0x401adc
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40404c]
call fcn.00401f98
ret
call fcn.004020a7
jmp 0x401965
Function at 0x4020a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4020b6
pop dword [ebp - 0x50]
mov eax, 0xeb1ac117
add eax, 0x15255f9f
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x287b3463
add dword [ebp - 0x60], 0x25d710e8
mov dword [ebp - 0x5c], 0xde05f37c
sub dword [ebp - 0x5c], 0xabd2a737
mov dword [ebp - 0x58], 0x46ad803f
sub dword [ebp - 0x58], 0xfa613c11
mov dword [ebp - 0x54], 0x32f9a303
sub dword [ebp - 0x54], 0x32f9a303
lea eax, [ebp - 0x60]
push eax
mov eax, 0xdbab242
add eax, 0xf2855e6a
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x6d8b79eb
sub dword [ebp - 0x60], 0xf9191095
mov dword [ebp - 0x5c], 0x8cf52c33
sub dword [ebp - 0x5c], 0x4b88cabe
mov dword [ebp - 0x58], 0x6672fb87
add dword [ebp - 0x58], 0xfcfc70e5
mov dword [ebp - 0x54], 0xff502dad
add dword [ebp - 0x54], 0xafd253
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x4dec7e70
sub eax, 0x4dac6dd8
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3563a
push 0
call eax
mov ecx, 0x4379
mov edi, eax
mov ebx, 0x53d8a6b
sub ebx, 0x4fd366b
add ebx, dword [ebp - 0x50]
mov esi, 0xbbfa217d
add esi, 0xbd2ed3e9
xor dword [ebp - 0x48], 0x4ad02b7b
mov edx, dword [ebx]
xor edx, esi
xor dword [ebp - 0x28], ebx
mov dword [edi], edx
add dword [ebp - 0x4c], 0xd65b5c47
add edi, 0xeadb49c1
add edi, 0x1524b643
add ebx, 0xecbafda7
add ebx, 0x1345025d
loop 0x4021d2
add eax, 0xa8bb2768
sub eax, 0xa8ba26b1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x402dd8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4033d8
Capabilities:
Query or enumerate registry value

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

Function at 0x4040c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x414044], 0
je 0x404125
cmp word [0x414218], 0xd7b2
jne 0x4040ed
cmp dword [0x414220], 0
jbe 0x4040ed
mov eax, 0x414214
call dword [0x414230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x40414c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x413030], 0
jne 0x404141
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405340
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 0x405570
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4053c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405570
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4053c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40558c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40544c
xor eax, eax
push ebp
push 0x405445
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040517c
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 0x40542a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4055ac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40542a
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 0x40544c
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 0x405566
cmp byte [ebp - 0xd], 0
jne 0x405493
cmp byte [ebp - 0x12], 0
je 0x405566
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4054ac
dec ebx
cmp byte [ebx], 0x2e
je 0x4054bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4054ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405566
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4054f8
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 0x405566
cmp byte [ebp - 0xd], 0
je 0x405566
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 0x405566
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
Function at 0x406990
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x406a20
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x406a20
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4069d3
test edx, 3
jne 0x4069c2
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4069cd
jmp 0x4069d3
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4069d3
cmp dword [ecx - 8], 1
je 0x4069dd
mov edx, ebx
or edx, 3
call fcn.00404878
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4069ef
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404244

Function at 0x406a2c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x406abc
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x406abc
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x406a6f
test edx, 3
jne 0x406a5e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x406a69
jmp 0x406a6f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x406a6f
cmp dword [ecx - 8], 1
je 0x406a79
mov edx, ebx
or edx, 3
call fcn.00404878
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x406a8b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404244

Function at 0x409778
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4097b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404334
jmp 0x4097ba
mov eax, ebx
mov edx, esi
call fcn.00404298
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4097c4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4097e6
movzx eax, byte [esp]
jmp 0x4097e8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret