joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408485
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x414034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4084d0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004085fb
test al, al
jne 0x4084ca
sub edx, 2
cmp edx, edi
jne 0x4084b0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4084f2
lea eax, [edi + 2]
cmp edx, eax
je 0x4084f2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004083d1
add esp, 0x10
jmp 0x4085ec
push esi
lea ecx, [ebp - 0x255]
call fcn.004085fb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408535
push dword [ebp - 0x25c]
jmp 0x4084e2
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x408572
cmp word [ebp - 0x226], 0
je 0x408593
cmp word [ebp - 0x226], ax
jne 0x408572
cmp word [ebp - 0x224], 0
je 0x408593
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004083d1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4085df
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40854c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4085c7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4085ec
push 0x408620
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040a490
add esp, 0x10
jmp 0x4085bc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a65
leave
ret
Function at 0x10003bb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002093d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1003200c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x100bea18]
mov esi, dword [eax + edx*4]
mov eax, dword [0x100bf3b0]
cmp eax, dword [esi + 4]
jle 0x10003cb8
push 0x100bf3b0
call fcn.1000f11f
add esp, 4
cmp dword [0x100bf3b0], 0xffffffff
jne 0x10003cb8
mov dword [ebp - 4], 0
mov eax, dword [0x100bf3b8]
cmp eax, dword [esi + 4]
jle 0x10003c60
push 0x100bf3b8
call fcn.1000f11f
add esp, 4
cmp dword [0x100bf3b8], 0xffffffff
jne 0x10003c60
mov byte [ebp - 4], 1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x30]
mov dword [0x100bf3ac], eax
mov byte [ebp - 4], 0
push 0x100bf3b8
call fcn.1000f0ce
add esp, 4
mov eax, dword [0x100bf3ac]
test eax, eax
jne 0x10003c6d
or al, 0xff
jmp 0x10003c9f
mov ecx, dword [eax + 0xa4]
cmp ecx, 6
je 0x10003c8a
cmp ecx, 0xa
mov eax, 3
mov edx, 0xff
cmovne eax, edx
jmp 0x10003c9f
mov eax, dword [eax + 0xa8]
cmp eax, 3
jne 0x10003c99
mov al, 2
jmp 0x10003c9f
cmp eax, 2
sete al
mov byte [0x100bf3b4], al
mov dword [ebp - 4], 0xffffffff
push 0x100bf3b0
call fcn.1000f0ce
add esp, 4
movzx eax, byte [0x100bf3b4]
add eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004a60
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push edi
mov edi, edx
cmp ebx, 0xffffffff
jne 0x10004a79
pop edi
or eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebx - 1]
call fcn.10004a60
mov bl, byte [ebx + edi]
mov esi, eax
call fcn.10004a40
mov byte [ebp - 1], al
mov al, bl
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0x677d1cc8
mov edx, dword [ebp - 8]
mov cl, byte [ebp - 1]
xor edx, 0x31
sub al, cl
xor dl, 0xe3
movsx ecx, byte [ebp - 1]
cmp al, dl
sbb al, al
add ecx, 0xbe
and al, 0x20
or bl, al
movsx eax, bl
xor eax, esi
shr esi, 8
and ecx, eax
xor esi, dword [ecx*4 + 0x1002efd8]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004ae0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp esi, 0xffffffff
jne 0x10004af9
pop esi
or eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [esi - 1]
call fcn.10004ae0
movzx ecx, word [ebx + esi*2]
mov edi, eax
mov dword [ebp - 0xc], ecx
call fcn.10004a40
mov si, word [ebp - 0xc]
mov byte [ebp - 1], al
mov cx, si
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0x1e67b3c7
mov edx, dword [ebp - 8]
movsx ax, byte [ebp - 1]
xor edx, 0x31
xor dl, 0xec
sub cx, ax
movzx eax, dl
cmp cx, ax
movsx ecx, byte [ebp - 1]
sbb eax, eax
add ecx, 0xbe
and eax, 0x20
or si, ax
movzx eax, si
xor eax, edi
shr edi, 8
and ecx, eax
xor edi, dword [ecx*4 + 0x1002efd8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004b70
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004b80
sub eax, edx
lea ebx, [eax - 1]
cmp ebx, 0xffffffff
jne 0x10004b9e
or esi, ebx
not esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx - 1]
mov edx, edi
call fcn.10004a60
mov bl, byte [ebx + edi]
mov esi, eax
call fcn.10004a40
mov byte [ebp - 1], al
mov al, bl
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0x677d1cc8
mov edx, dword [ebp - 8]
mov cl, byte [ebp - 1]
xor edx, 0x31
sub al, cl
xor dl, 0xe3
movsx ecx, byte [ebp - 1]
cmp al, dl
pop edi
sbb al, al
add ecx, 0xbe
and al, 0x20
or bl, al
movsx eax, bl
xor eax, esi
shr esi, 8
and ecx, eax
xor esi, dword [ecx*4 + 0x1002efd8]
not esi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x1003200c]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword fs:[0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 4
mov eax, dword [eax + 0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
je 0x100071db
mov eax, dword [eax + 8]
mov ecx, 0x5a4d
mov dword [esp + 0x20], eax
cmp word [eax], cx
jne 0x100071db
mov ebx, dword [eax + 0x3c]
cmp dword [ebx + eax], 0x4550
jne 0x100071db
mov ebx, dword [ebx + eax + 0x80]
add ebx, eax
mov dword [esp + 0x14], ebx
cmp dword [ebx], 0
je 0x100071db
nop word [eax + eax]
mov ecx, dword [ebx + 0xc]
add ecx, eax
call fcn.1000ca10
mov dword [esp + 0x18], eax
test eax, eax
je 0x100071db
mov edx, dword [esp + 0x10]
mov edi, dword [ebx]
mov esi, dword [ebx + 0x10]
add edi, dword [edx + 8]
add esi, dword [edx + 8]
mov eax, dword [edi]
test eax, eax
js 0x100071c7
je 0x100071c3
mov ecx, dword [edx + 8]
add ecx, eax
mov dword [esp + 0x24], esi
mov eax, dword [esi]
add ecx, 2
mov dword [esp + 0x1c], eax
call fcn.10004b70
mov ecx, dword [esp + 0x18]
mov edx, eax
call fcn.1000caf0
mov ebx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100071a7
test ebx, ebx
je 0x100071a7
cmp eax, ebx
je 0x100071a7
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 4
push eax
push 4
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
call fcn.1000eed6
add esp, 0x14
test eax, eax
js 0x100071a7
lea eax, [esp + 0x30]
mov dword [esi], ebx
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 4
push eax
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
call fcn.1000eed6
add esp, 0x14
mov edx, dword [esp + 0x10]
add edi, 4
mov dword [esp + 0x24], 0
add esi, 4
mov eax, dword [edi]
test eax, eax
jns 0x1000711f
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add ebx, 0x14
mov dword [esp + 0x14], ebx
cmp dword [ebx], 0
jne 0x100070f0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000f090
mov esp, ebp
pop ebp
ret
Function at 0x1000bf10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 8], 0
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], 0
jne 0x1000bf7b
cmp dword [eax + 0x64], 2
jb 0x1000bf7b
push 0
push 4
lea eax, [ebp - 8]
push eax
push 7
push 0xffffffffffffffff
call fcn.1000ee52
add esp, 0x14
test eax, eax
jne 0x1000bf6b
cmp dword [ebp - 8], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f090
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f090
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1000f090
mov esp, ebp
pop ebp
ret

Function at 0x1000c5c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1003200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov edx, esi
push edi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1000c5e0
sub edx, ecx
sar edx, 1
lea edi, [edx - 1]
cmp edi, 0xffffffff
jne 0x1000c5fb
mov eax, edi
jmp 0x1000c618
lea ecx, [edi - 1]
mov edx, esi
call fcn.10004a10
movzx ecx, word [esi + edi*2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1002efd8]
not eax
xor edx, edx
mov ecx, eax
call fcn.1000c7f0
test eax, eax
jne 0x1000c6a3
mov eax, dword [0x100bf304]
test eax, eax
jne 0x1000c663
xor edx, edx
mov ecx, 0x84c05e40
call fcn.1000c7f0
mov edx, 0xfa2a9aa9
mov ecx, eax
call fcn.1000caf0
mov dword [0x100bf304], eax
test eax, eax
jne 0x1000c663
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f090
mov esp, ebp
pop ebp
ret
push esi
lea edx, [ebp - 0xc]
push edx
call eax
mov eax, dword [0x100bf308]
test eax, eax
jne 0x1000c68b
mov edx, 0xa09b055e
mov ecx, 0x84c05e40
call fcn.1000cdb0
mov dword [0x100bf308], eax
test eax, eax
je 0x1000c651
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000f090
mov esp, ebp
pop ebp
ret
Function at 0x1000cdb0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, edx
xor edx, edx
call fcn.1000c7f0
mov edx, esi
mov ecx, eax
pop esi
jmp fcn.1000caf0

Function at 0x1000d3d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push esi
push edi
test eax, eax
je 0x1000d438
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000d438
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x1000d438
xor eax, eax
xor edi, edi
cmp ax, word [esi + 6]
jae 0x1000d438
xor ebx, ebx
nop dword [eax + eax]
movzx eax, word [esi + 0x14]
add eax, 0x18
add eax, ebx
add eax, esi
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.10004b70
cmp eax, 0xa21c1ea3
je 0x1000d441
movzx eax, word [esi + 6]
inc edi
add ebx, 0x28
cmp edi, eax
jb 0x1000d410
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx], ecx
mov eax, dword [edx + 0xc]
add eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [edx + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 0x14]
mov dword [ebx + 0xc], eax
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000edc4
Capabilities:
Check os version

Disassembly:
pop ecx
xor al, 0x5a
push ebp
mov ebp, esp
mov ecx, dword fs:[0x30]
cmp word [ecx + 0xa4], 0xa
je 0x1000ee10
cmp word [ecx + 0xa4], 6
jne 0x1000ee43
cmp word [ecx + 0xa8], 3
je 0x1000ee11
cmp word [ecx + 0xa8], 2
je 0x1000ee12
cmp word [ecx + 0xa8], 1
jne 0x1000ee43
cmp word [ecx + 0xac], 0x1db1
je 0x1000ee13
jmp 0x1000ee43
inc eax
inc eax
inc eax
mov ecx, 0x10
dec ecx
push dword [ebp + ecx*4 + 8]
jne 0x1000ee18
push 0x1000ee43
cmp dword [0x100bf16c], 0
jne 0x1000ee36
call dword fs:[0xc0]
jmp 0x1000ee43
mov edx, dword fs:[0xc0]
jmp dword [0x100bf16c]
mov esp, ebp
pop ebp
ret

Function at 0x10010020
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10010030

Function at 0x100102b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100102bc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.100102d0

Function at 0x1001935a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028758
push 0x10028750
push str.FlsAlloc
push 0x1e
call fcn.10019278
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001938e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022128]
call esi
jmp 0x10019394
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100193d8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028768
push 0x10028760
push str.FlsGetValue
push 0x20
call fcn.10019278
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001940f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001a8e9
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 0x1001a986
push ebx
push esi
call fcn.1001a8b2
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.1001a7fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001a933
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001a985
push edi
push eax
call fcn.10018dc3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001a953
call fcn.10018d89
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001a984
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001a7fb
add esp, 0x20
test eax, eax
jne 0x1001a972
push edi
call fcn.10018d89
jmp 0x1001a97a
push ebx
call fcn.10018d89
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 0x10020310
Capabilities:
Parse pe header

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

Function at 0x50b9b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x50b9d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b9d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b9c8
mov eax, 1
add ebx, ebx
jne 0x50b9eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b9e0
jne 0x50b9fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b9e0
xor ecx, ecx
sub eax, 3
jb 0x50ba10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50ba82
mov ebp, eax
add ebx, ebx
jne 0x50ba1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50ba28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ba4c
inc ecx
add ebx, ebx
jne 0x50ba38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50ba2d
jne 0x50ba49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ba2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50ba6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50ba5d
jmp 0x50b9ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50ba6c
add edi, ecx
jmp 0x50b9ce
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50ba8a
cmp byte [edi], 6
jne 0x50ba8a
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 0x50ba8f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50bafe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50babc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50baf8
mov dword [ebx], eax
add ebx, 4
jmp 0x50bad9
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50bb32
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x403800
Capabilities:
Query or enumerate registry value

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

Function at 0x404694
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x479048], 0
je 0x4046f5
cmp word [0x47921c], 0xd7b2
jne 0x4046bd
cmp dword [0x479224], 0
jbe 0x4046bd
mov eax, 0x479218
call dword [0x479234]
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 0x40471c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47702c], 0
jne 0x404711
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408348
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40839a
test eax, edx
je 0x40839d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40835d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408383
add ecx, 4
js 0x408373
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408380
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4083a9
test edx, edx
jne 0x408350
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b570
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 0x40b5a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404904
jmp 0x40b5b2
mov eax, ebx
mov edx, esi
call fcn.00404868
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b5bc
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 0x40b5de
movzx eax, byte [esp]
jmp 0x40b5e0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bc70
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bae8
mov eax, dword [0x4789c8]
cmp byte [eax], 0
je 0x40bcec
mov eax, dword [0x4787f4]
call fcn.004031c8
call fcn.00402fac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408cf0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bd34
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd22
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4787a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47b7f4]
call fcn.0040596c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret