joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b6e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
movzx ecx, word [ecx + 6]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8]
cmp eax, edi
je 0x1000b71e
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x1000b717
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x1000b720
add eax, 0x28
cmp eax, edi
jne 0x1000b707
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x1000c4b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x1001a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1000c4d7
mov ecx, 5
int 0x29
push 2
call fcn.1000c240
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1000c5e2
test esi, esi
jne 0x1000c5e2
push 2
call fcn.1000c240
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000cb3b
mov esp, ebp
pop ebp
ret
Function at 0x41d529
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041d480
add esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x41d558
mov eax, 0xea61
jmp 0x41d5d6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x3c], 0
jne 0x41d568
mov eax, 0xea62
jmp 0x41d5d6
push 0xf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041d480
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x41d595
mov eax, 0xea62
jmp 0x41d5d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x14c
je 0x41d5ad
mov eax, 0xea65
jmp 0x41d5d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
test ch, 0x10
je 0x41d5c2
mov eax, 0xea66
jmp 0x41d5d6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x74], 0x10
jbe 0x41d5d2
mov eax, 0xea67
jmp 0x41d5d6
xor eax, eax
jmp 0x41d5d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x405e19
xor ecx, ecx
jne 0x405e19
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x405e3a
mov eax, 0xd
jmp 0x405e95
xor eax, eax
jne 0x405e21
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x405e4b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x405ea0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42f068]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00405ad0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405d10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x405f0b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00405b00
mov eax, dword [ebp - 0x224]
jmp 0x405f9c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405f71
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405ea0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x405f68
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00405b00
mov eax, dword [ebp - 0x228]
jmp 0x405f9c
mov dword [ebp - 4], 0x100
jmp 0x405f12
lea ecx, [ebp - 0x14]
call fcn.00405c40
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00405b80
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00405b00
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040e7d1
mov esp, ebp
pop ebp
ret 4
Function at 0x40e7d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f068]
jne 0x40e7db
repz ret
jmp fcn.004127d4

Function at 0x41e8ef
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.00415841
and dword [ebp - 4], 0
cmp dword [0x431138], 0
mov ebx, eax
jne 0x41e9a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ea51
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41ea51
push eax
call fcn.004157cf
mov dword [esp], 0x42a350
push edi
mov dword [0x431138], eax
call esi
push eax
call fcn.004157cf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43113c], eax
call esi
push eax
call fcn.004157cf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x431140], eax
call esi
push eax
call fcn.004157cf
pop ecx
mov dword [0x431148], eax
test eax, eax
je 0x41e9a0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004157cf
pop ecx
mov dword [0x431144], eax
mov eax, dword [0x431144]
cmp eax, ebx
je 0x41e9f8
cmp dword [0x431148], ebx
je 0x41e9f8
push eax
call fcn.0041584a
push dword [0x431148]
mov esi, eax
call fcn.0041584a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41e9f8
test edi, edi
je 0x41e9f8
call esi
test eax, eax
je 0x41e9ef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41e9ef
test byte [ebp - 0xc], 1
jne 0x41e9f8
or dword [ebp + 0x10], 0x200000
jmp 0x41ea31
mov eax, dword [0x43113c]
cmp eax, ebx
je 0x41ea31
push eax
call fcn.0041584a
pop ecx
test eax, eax
je 0x41ea31
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ea31
mov eax, dword [0x431140]
cmp eax, ebx
je 0x41ea31
push eax
call fcn.0041584a
pop ecx
test eax, eax
je 0x41ea31
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431138]
call fcn.0041584a
pop ecx
test eax, eax
je 0x41ea51
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ea53
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420931
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x43121c], 0
push esi
jne 0x4208a4
call fcn.004207ca
test eax, eax
je 0x4208e7
mov eax, dword [0x43121c]
cmp eax, 1
jne 0x4208c5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4208e7
pop esi
ret
push eax
call dword [0x431224]
test eax, eax
jne 0x42092f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4208eb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x43121c]
call dword [0x431224]
mov edi, eax
test edi, edi
je 0x420910
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42092c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x43121c]
call dword [0x431220]
add edi, 0x10
cmp edi, esi
jb 0x420918
mov eax, edi
pop edi
pop esi
ret
jmp 0x420891
Function at 0x423cc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
call fcn.00423fd0
test eax, eax
je 0x423cf0
push 0x10
push 0x42aed8
push str.Failed_to_initialize_MD5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x423d84
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x3d]
test eax, eax
je 0x423d18
push 0x10
push 0x42af18
push str.thread_still_working
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x423d84
push 0x42af50
mov ecx, dword [ebp - 4]
add ecx, 0x34
call fcn.00409860
push 0x42af54
mov ecx, dword [ebp - 4]
add ecx, 0x38
call fcn.00409d20
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 1
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x3d], 1
mov edx, dword [ebp - 4]
push edx
push 0
push 0x4217d0
call fcn.0041150f
add esp, 0xc
cmp eax, 0xffffffff
jne 0x423d82
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 0
push 0x10
push 0x42af58
push str.cannot_create_worker_thread
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x423d84
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10004cc0
Capabilities:
Encode data using xor

Disassembly:
xchg edi, eax
std
inc esp
adc dword [ebx - 0x55d964f2], ecx
lds eax, [eax + 0x75]
mov bl, 0xd8
pop esp
cmpsb byte [esi], byte es:[edi]
inc ebp
pop ss
outsb dx, byte fs:[esi]
or ebx, dword [ebp - 0x7d]
xor dl, bh
invalid

Function at 0x10012d50
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xe00b13df
mov eax, 0xde8465bd
pop edi
dec esi
in al, 0xe3
dec ebp
xor byte [esi + 0x7a84b9ce], cl
push ecx
lidt [ebx + esi]
and dword [ebp + 0x51], edi
popal
sub esi, edx
leave
call dword [ebp - 0x6d]
fst dword [ecx - 0x4e]
lds ebp, [ecx - 0x7930d5d5]
imul edi, dword [esi - 0x7f9e301f], 0x5dc39b19
inc eax
mov ebx, dword [eax]
pop ss
xchg byte [bx + si - 1], cl
inc ebx
pop esi
jl 0x10012d52
jmp dword [ebx]
and ebp, dword [edx + 0x37]
add al, 0xcd
or al, 0x49
out 0x68, eax
xor al, 0x92
in eax, 0x93
mov eax, dword [0x8449afa1]
arpl word [ebx + 0x35], bx
jb 0x10012d4b
test dword [ebp + 0xe], ebx
sub byte [ebp + 0x66], dh
shl cl, 1
das
insb byte es:[edi], dx
push ebx
jnp 0x10012d0e
mov dl, 0x85
pop edx
adc ebx, eax
imul esi, dword [edi + 0x15ebfc38], 0x36019c0e
fidiv dword [eax + 0x43]
mov ecx, 0x596b11ae
xchg ecx, eax
adc dword [eax], 0xffffffa8
rol esi, 0x42
std
sbb edx, 0xffffffd5
arpl word [eax + 0x4f3f94bc], di
push 0x4f
cmp bl, byte [edx + 0x35]
or dword [eax + 0x41c09e79], 0x4f
lodsd eax, dword [esi]
cdq
xor edx, dword [ebp + 0x28]
sar dword [eax + esi*2], cl
sbb byte [0x7d35b43b], bh
xchg dword [edx + 0x11], ebx
inc esp
cwde
bound eax, qword [eax + 0x24]
sbb esp, eax
loopne 0x10012d7d
retf
Function at 0x104c2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.104c21a8
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 0x104c207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104c206a
add dl, dl
jne 0x104c2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104c20dc
xor eax, eax
add dl, dl
jne 0x104c2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104c217d
add dl, dl
jne 0x104c20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104c20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104c2075
mov eax, 1
add dl, dl
jne 0x104c20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104c20e1
sub eax, ebx
mov ebx, 1
jne 0x104c2128
mov ecx, 1
add dl, dl
jne 0x104c210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104c2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104c2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104c2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104c213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104c214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104c2136
cmp eax, 0x7d00
jae 0x104c216d
cmp eax, 0x500
jb 0x104c2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104c2075
cmp eax, 0x7f
ja 0x104c2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104c2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104c219e
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 0x104c2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4011ac
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x402170
call fcn.004013b8
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x4011ff
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x4011ff
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x401217
cmp ecx, 0x20b
je 0x401204
mov dword [ebp - 0x1c], ebx
jmp 0x40122b
cmp dword [eax + 0x84], 0xe
jbe 0x4011ff
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x401225
cmp dword [eax + 0x74], 0xe
jbe 0x4011ff
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x403050], edi
mov dword [0x403054], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40304c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x403048]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403058], eax
call fcn.004013b4
cmp dword [0x403038], ebx
jne 0x401288
push fcn.004013b4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004013a2
push 0x40208c
push 0x402088
call sub.msvcrt.dll__initterm
mov eax, dword [0x403044]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x403040]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x402084
push 0x402080
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x401313
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x4012f3
cmp cl, 0x22
jne 0x4012e4
cmp byte [eax], 0x22
jne 0x4012fc
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x401307
cmp cl, 0x20
jbe 0x4012f8
test byte [ebp - 0x54], 1
je 0x40131e
movzx ecx, word [ebp - 0x50]
jmp 0x401321
cmp byte [eax], 0x20
jbe 0x4012fc
inc eax
mov dword [ebp - 0x20], eax
jmp 0x401313
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00401116
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40133f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x40137b
mov eax, esi
jmp 0x40138f
call fcn.004013f3
ret
Function at 0x7b09f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x120000]
push edi
or ebp, 0xffffffff
jmp 0x7b0a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7b0a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b0a08
mov eax, 1
add ebx, ebx
jne 0x7b0a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7b0a3c
jne 0x7b0a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b0a5b
dec eax
add ebx, ebx
jne 0x7b0a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7b0a20
add ebx, ebx
jne 0x7b0a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7b0aad
xor ecx, ecx
sub eax, 3
jb 0x7b0a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7b0ae2
sar eax, 1
mov ebp, eax
jmp 0x7b0a7e
add ebx, ebx
jne 0x7b0a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b0a4c
inc ecx
add ebx, ebx
jne 0x7b0a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b0a4c
add ebx, ebx
jne 0x7b0a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7b0a8e
jne 0x7b0aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7b0a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7b0acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7b0abe
jmp 0x7b0a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7b0acc
add edi, ecx
jmp 0x7b0a0e
pop esi
mov edi, esi
mov ecx, 0x4745
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7b0aea
cmp byte [edi], 0x24
jne 0x7b0aea
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 0x7b0aef
lea edi, [esi + 0x3ad000]
mov eax, dword [edi]
or eax, eax
je 0x7b0b67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3b208c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3b21b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7b0b1c
mov ecx, edi
jns 0x7b0b4b
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 + 0x3b21b8]
or eax, eax
je 0x7b0b61
mov dword [ebx], eax
add ebx, 4
jmp 0x7b0b39
call dword [esi + 0x3b21b4]
mov ebp, dword [esi + 0x3b21bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x7b0b9b
sub esp, 0xffffff80
jmp 0x4aabd5
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x1e100010
mov ecx, 0x80200
xor esi, ecx
mov eax, 0x39ed4759
mov ebx, 0x58ad4b97
xor ebx, eax
xor esi, ebx
mov ecx, 0x22c44c1
mov ebx, 0x15403008
xor ecx, ebx
push ecx
mov edi, 0x3d55e4e8
xor edi, 0x56d99bef
pop eax
xor edi, eax
xor edi, esi
mov edi, 0x221227d4
xor edi, 0x2252f654
not byte [edx + 0x22]
push 0x77af94f2
mov edx, 0x77af94f2
pop ebx
xor edx, ebx
mov ebx, 0x6c6fd4b5
mov eax, 0x6c6fd4b5
xor eax, ebx
xor edx, eax
mov ebx, 0x2203000b
mov eax, 0x4da45120
xor ebx, eax
mov edi, 0x58aae0e0
xor edi, 0x370db1cb
xor edi, ebx
xor edx, edi
xor esi, esi
add esi, edx
and esi, edx
je 0x403fa5
add byte [ebx], dh
shl byte [ebx + 0x40c02c], 0xc6
add eax, 0x40c033
add al, dh
add eax, 0x40c034
add al, dh
add eax, 0x40c035
add esp, dword [esi - 0x39]
add eax, 0x40c3dc
add byte [eax], al
mov word [0x40c3ec], 1
call fcn.0040285c
mov eax, 0x40c038
mov edx, 0x404398
call fcn.00403c25
mov eax, 0x40c204
mov edx, 0x404398
call fcn.00403c25
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404391
ret

Function at 0x4051fc
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
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
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
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x402e40
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4033a0
Capabilities:
Query or enumerate registry value

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

Function at 0x404118
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x478048], 0
je 0x404179
cmp word [0x47821c], 0xd7b2
jne 0x404141
cmp dword [0x478224], 0
jbe 0x404141
mov eax, 0x478218
call dword [0x478234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x476058
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 0x4041a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x476020], 0
jne 0x404195
push 0
push 0x476078
push 0x476058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret