joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d8c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42b1e0
push 0x4123f0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x42d008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x40d929
xor eax, eax
jmp 0x40da9f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40da6a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40da6a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40da6a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x40da6a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40da6a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x40da6a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40da6a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x40da6a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40da6a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x40da6a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40da6a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40da53
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40da40
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x40da50
jmp 0x40da6a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040dac6
test ebx, ebx
jne 0x40da9d
test esi, esi
je 0x40da8f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40da9d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00410326
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e8d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x42e7b8], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x42e4b8], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x42e6b8], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x42e5b8], al
inc esi
cmp esi, 0x100
jl 0x40e9e0
pop esi
add esp, 0x80
ret
Function at 0x410ae2
Capabilities:
Encode data using xor

Disassembly:
cmp ch, bl
mov ebp, 0x7fda9f48
not ch
cmp cl, dl
shr dword [ecx], 1
test dword [ecx + 0x69ebea], 0xc6dfb900
jmp 0x410ac5
add byte [eax], al
mov ecx, 0xdb6ec6df
sub al, 0x99
xor bl, 0x22
jbe 0x410a6d
imul ecx, ebx
imul ebx, edi, 0xa137acf2
call 0x410ae2
mov esi, eax
mov dh, dl
test ecx, 0xf265657a
imul ebp, ebx
mov edx, 0xaab6
mov dh, 0xaa
add byte [eax], al
test ebp, 0xdcc667c7
xor edx, 0xa0a2
add bh, ah
bswap edi
lea ecx, [edx]
js 0x410aa1
movzx eax, ch
xor ecx, 0x64
neg edi
jmp 0x410abb
lea ebp, [0x3e30fe3e]
sub ecx, 0xb
cmp eax, 0xbf18dc3d
add ecx, 0xa
neg ebx
mov esi, 0x8a14d681
cmp ecx, 0x44e
jae 0x410aa7
jne 0x410ae6
test ebp, ecx
and ebx, edi
imul esi, edx
mov eax, 0x9763
bswap ebx
xor eax, 0x944f
add eax, 0x16
cmp edi, 0xf3a9
jb 0x410b10
lea edx, [0x287e1145]
lea edx, [0x531221ab]
dec ch
sub eax, 0xfffffadd
imul ebp, ebp, 0x25ba031c
sub eax, 0x524
imul edx, eax, 0x115e2ab1
mov edx, edi
lea edi, [0x855710c8]
cmp eax, 0x183
jae 0x410afc
pop ebp
test al, cl
dec esi
cmp ecx, 0xcf8d
lea edi, [0x36d641cb]
jb 0x410b54
mov dh, 0x7d
bswap ebx
add ch, dl
dec bh
dec ecx
dec cl
imul edi, edx
movzx ecx, bx
lea ebx, [0xfffeab14]
not edx
xor ebx, 0x1c2
imul edx, ecx, 0x57a42a19
imul ecx, ecx
not dh
mov esi, 0x691
sbb cl, cl
xor esi, 0x691
cmp ebp, 0xf00f
jbe 0x410b8c
cmp edx, edi
xor esi, ebx
or bh, 0x44
sub esi, 0x35a9e
jmp 0x410b9d
mov eax, esi
cmp ebx, 0x8e34
jae 0x410bab
neg edx
sbb ch, cl
add eax, 0x4b737
mov bl, ch
mov bl, ch
test cl, dh
sub eax, 0xea1
cmp dh, ch
add eax, 0xea0
mov ebx, eax
xor bh, dh
imul ecx, ebx
cmp eax, 0xc5
jae 0x410bb0
movd mm1, ebp
movd edx, mm1
mov ecx, ecx
neg al
mov eax, ecx
lea ecx, [0x217b3]
add edi, 0x511e198c
add ecx, 0x93f
add edx, ecx
sub edx, 0xea0
cmp edi, esi
js 0x410c00
inc ecx
mov ch, 0xcf
xchg ebx, esi
mov bh, 0x78
not al
jb 0x410c09
imul eax, esi
xchg edi, eax
push edx
cmp ecx, 0x2caa
jo 0x410c16
bswap edi
mov ah, bh
or ebx, edi
add esi, 0x718c
jno 0x410c1f
invalid
invalid
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x100010d0
Capabilities:
Delete network filter via wfp api
Enumerate network filters via wfp api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push 0xa
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.fwpuclnt.dll_FwpmEngineOpen0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov esi, dword [eax + 0x10002080]
mov eax, dword [0x1000300c]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x10001153
push str.RtlZeroMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000300c], eax
test eax, eax
je 0x1000115c
push 0x30
lea ecx, [esp + 0x24]
push ecx
call eax
movdqu xmm0, xmmword [esi]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 1
push eax
push edi
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 2
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.fwpuclnt.dll_FwpmFilterCreateEnumHandle0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
push dword [esp + 0x1c]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterEnum0]
mov ebx, eax
test ebx, ebx
jne 0x10001214
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10001214
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10001214
xor esi, esi
test edx, edx
je 0x10001209
mov eax, dword [edi + esi*4]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x100011e6
cmp dword [ecx], 0
jne 0x10001204
push dword [eax + 0x8c]
push dword [eax + 0x88]
push dword [esp + 0x14]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDeleteById0]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc esi
cmp esi, edx
jb 0x100011d7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmFreeMemory0]
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDestroyEnumHandle0]
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
cmp eax, 8
jb 0x10001120
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10001245
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmEngineClose0]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x102524c0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x102526ad
pushal
mov esi, section.UPX1
lea edi, [esi - 0x167000]
push edi
or ebp, 0xffffffff
jmp 0x102524ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x102524f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x102524e0
mov eax, 1
add ebx, ebx
jne 0x10252503
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10252514
jne 0x10252533
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10252533
dec eax
add ebx, ebx
jne 0x10252520
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x102524f8
add ebx, ebx
jne 0x1025252f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10252585
xor ecx, ecx
sub eax, 3
jb 0x1025254b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x102525ba
sar eax, 1
mov ebp, eax
jmp 0x10252556
add ebx, ebx
jne 0x10252556
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10252524
inc ecx
add ebx, ebx
jne 0x10252564
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10252524
add ebx, ebx
jne 0x10252571
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10252566
jne 0x10252582
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10252566
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x102525a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10252596
jmp 0x102524e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x102525a4
add edi, ecx
jmp 0x102524e6
pop esi
mov edi, esi
mov ecx, 0xa5a9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x102525c2
cmp byte [edi], 0x36
jne 0x102525c2
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 0x102525c7
lea edi, [esi + 0x244000]
mov eax, dword [edi]
or eax, eax
je 0x1025263f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2524ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2525ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x102525f4
mov ecx, edi
jns 0x10252623
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 + 0x2525f0]
or eax, eax
je 0x10252639
mov dword [ebx], eax
add ebx, 4
jmp 0x10252611
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10252670
cmp al, 0xef
ja 0x10252663
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10252645
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10252652
mov ebp, dword [esi + 0x2525f4]
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 0x102526a4
sub esp, 0xffffff80
jmp 0x1004fadb
Function at 0x100029d0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [esp]
neg eax
sbb eax, eax
and eax, ecx
pop ecx
ret

Function at 0x10002a30
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 1]
jmp 0x10002a40
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002a40
push 0
lea ecx, [esp + 8]
push ecx
sub eax, esi
push eax
push edx
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x10004d30
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10004d79
xor ecx, ecx
test esi, esi
mov byte [esp + 7], 0x11
jle 0x10004d79
mov edx, dword [esp + 0xc]
lea esp, [esp]
mov al, byte [ecx + edx]
mov byte [esp + 0x10], al
mov ah, byte [esp + 7]
mov al, byte [esp + 0x10]
xor al, ah
push ax
pop ax
mov byte [esp + 0x10], al
mov al, byte [esp + 0x10]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
mov byte [esp + 7], al
jl 0x10004d50
pop esi
pop ecx
ret
Function at 0x100186f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
push edi
xor eax, eax
mov ecx, 0x40
mov edi, esi
rep stosd dword es:[edi], eax
cmp byte [ebp], 0
mov ecx, 3
je 0x100187af
mov edi, ebp
push ebx
movzx eax, byte [edi]
cmp eax, 0x61
jb 0x10018728
cmp eax, 0x7a
ja 0x10018728
sub eax, 0x60
jmp case.0x1001873a.46
lea edx, [eax - 0x2d]
cmp edx, 0xcc
ja case.0x1001873a.46
movzx edx, byte [edx + 0x100187f4]
jmp dword [edx*4 + 0x100187d8]
mov eax, 0x1b
jmp case.0x1001873a.46
mov eax, 0x1c
jmp case.0x1001873a.46
mov eax, 0x1d
jmp case.0x1001873a.46
mov eax, 0x1e
jmp case.0x1001873a.46
mov eax, 0x1f
jmp case.0x1001873a.46
mov eax, 0x20
shl eax, cl
cmp ecx, 3
jg 0x10018780
mov dl, byte [esi]
or dl, al
test ecx, ecx
mov byte [esi], dl
jne 0x1001877b
inc esi
add ecx, 3
jmp 0x100187a2
mov bl, byte [esi]
mov edx, eax
shr edx, 8
or bl, dl
cmp ecx, 4
mov byte [esi], bl
je 0x10018795
sub ecx, 5
jmp 0x1001879a
mov ecx, 7
mov dl, byte [esi + 1]
inc esi
or dl, al
mov byte [esi], dl
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10018716
pop ebx
pop edi
mov eax, ebp
pop esi
lea edx, [eax + 1]
pop ebp
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100187b7
sub eax, edx
lea ecx, [eax + eax*4]
mov eax, ecx
shr eax, 3
lea edx, [eax*8]
cmp edx, ecx
je 0x100187d4
inc eax
ret
Function at 0x10029750
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x534
mov eax, dword [0x100682c0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x544]
movzx ecx, word [esi + 0xe4]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x42c], 0
mov byte [esp + 0x428], 0
mov byte [esp + 0x31e], 0
mov byte [ecx + edx], 1
movzx ecx, word [esi + 0xe4]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x53c], eax
mov eax, dword [esp + 0x548]
mov byte [ecx + edx + 2], 0
movzx ecx, byte [eax]
sub ecx, 0x61
cmp ecx, 0x19
push edi
ja 0x10029832
mov ebx, dword [esp + 0x10]
jmp 0x100297c0
movzx ecx, byte [ecx + 0x1002a130]
jmp dword [ecx*4 + 0x1002a10c]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
mov ecx, dword [esp + 0x530]
call fcn.10057644
add esp, 0x534
ret
Function at 0x1004fb60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
push 0x10062c44
push eax
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x1004fbb8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, dword [esp + 0x14]
push eax
mov dword [ebx + 0x820], eax
call dword [sym.imp.kernel32.dll_LockResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.kernel32.dll_SizeofResource]
push ebp
push ebx
call fcn.1004f900
add esp, 8
pop ebp
neg eax
pop ebx
sbb eax, eax
pop edi
neg eax
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x1005881b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1005882a
pop dword [ebp - 0x30]
mov eax, 0xc03d4250
sub eax, 0xb037ba26
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3b670
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xd6d764a9
add ecx, 0x2928ed55
mov edi, eax
mov edx, 0xfacd1c5e
add edx, 0x153b43a2
add edx, dword [ebp - 0x30]
mov esi, 0xf9423712
xor dword [ebp - 0x1c], edx
mov ebx, dword [edx]
sub dword [ebp - 0x14], esi
add ebx, esi
xor dword [ebp - 4], ecx
mov dword [edi], ebx
xor dword [ebp - 0x10], edi
add edi, 0x6e04362d
sub edi, 0x6e043629
add edx, 0xf50b2a56
add edx, 0xaf4d5ae
loop 0x1005887e
add eax, 0x13acb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x1005a116
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100630f0
call fcn.10058c20
push 8
call fcn.1005881b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1006a74c], esi
jne 0x1005a14a
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x1006a748], esi
mov al, byte [ebp + 0x10]
mov byte [0x1006a744], al
cmp dword [ebp + 0xc], edi
jne 0x1005a194
cmp dword [0x1006d408], edi
je 0x1005a184
mov eax, dword [0x1006d404]
sub eax, 4
mov dword [0x1006d404], eax
cmp eax, dword [0x1006d408]
jb 0x1005a184
mov eax, dword [eax]
cmp eax, edi
je 0x1005a165
call eax
jmp 0x1005a165
push 0x10066020
mov eax, 0x1006601c
call fcn.1005a076
pop ecx
push 0x10066028
mov eax, 0x10066024
call fcn.1005a076
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1005a1c5
cmp dword [ebp + 0x10], edi
jne 0x1005a1d3
mov dword [0x1006a74c], esi
push dword [ebp + 8]
call fcn.1005a034
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1005a1d2
push 8
call fcn.1005881b
pop ecx
ret
call fcn.10058c5b
ret
Function at 0x1005aca9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100682c0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100686e0]
je 0x1005acde
inc eax
cmp eax, 0x13
jb 0x1005accf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100686e0]
jne 0x1005ae04
mov eax, dword [0x1006a68c]
cmp eax, 1
je 0x1005addc
cmp eax, edx
jne 0x1005ad0e
cmp dword [0x1006a690], 1
je 0x1005addc
cmp ecx, 0xfc
je 0x1005ae04
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005ad44
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1005af80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1005b1b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1005ad78
mov eax, edi
push eax
call fcn.1005b1b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10062ca4
push edi
call fcn.1005b080
add esp, 0x10
push edi
call fcn.1005b1b0
push dword [esi + 0x100686e4]
mov ebx, eax
call fcn.1005b1b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10057e90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1005af80
push edi
push ebx
call fcn.1005af90
push 0x10062ca0
push ebx
call fcn.1005af90
push dword [esi + 0x100686e4]
push ebx
call fcn.1005af90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1005881b
add esp, 0x2c
jmp 0x1005ae04
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100686e4]
push dword [esi]
call fcn.1005b1b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10057644
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x100604be
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10064b30
call fcn.10058c20
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x1006ab10], edi
jne 0x10060502
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x100604ed
mov dword [0x1006ab10], ebx
jmp 0x10060502
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x10060502
mov dword [0x1006ab10], 2
mov eax, dword [0x1006ab10]
cmp eax, ebx
jne 0x10060522
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x100605e5
cmp eax, 2
je 0x1006052b
cmp eax, edi
jne 0x10060553
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x1006053e
mov eax, dword [0x1006a88c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x1006055a
xor eax, eax
jmp 0x100605e5
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.10057e90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x1006058d
cmp esi, edi
jne 0x100605a3
push dword [ebp - 0x20]
call fcn.1005b553
pop ecx
mov esi, eax
cmp esi, edi
je 0x10060553
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x100605d6
cmp dword [ebp + 0x14], edi
jne 0x100605c0
push edi
push edi
jmp 0x100605c6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x100605e2
push esi
call fcn.1005a219
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.10058c5b
ret