joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a400
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101c56c8
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x102832a0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
call fcn.10028f20
mov dword [esp + 0x10], 0
mov edx, dword [edi + 8]
mov dword [edi], vtable.FormWidgetSignature.0
mov dword [edi + 0xc], 3
mov dword [edi + 0x68], edx
mov dword [esp + 0x10], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret 0x18

Function at 0x1002ffc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x101bedf6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102832a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 0x20
call fcn.100f5c37
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp edi, ebx
je 0x10030040
mov eax, dword [esp + 0x30]
or ebp, 0xffffffff
xor esi, esi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], ebx
cmp eax, ebx
je 0x10030022
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10030015
sub eax, edx
mov ebp, eax
mov esi, ebp
push edi
call fcn.100558d0
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 0x1c]
cmp ecx, ebx
je 0x10030042
push ebp
push ecx
push eax
call fcn.1010c900
add esp, 0xc
jmp 0x10030042
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x20], ebp
mov esi, dword [esp + 0x28]
push 0x20
mov dword [esi], edi
mov dword [esi + 8], ebx
call fcn.100f5c37
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], 1
cmp edi, ebx
je 0x100300b0
mov eax, dword [esp + 0x2c]
xor esi, esi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], ebx
cmp eax, ebx
je 0x1003008e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10030081
sub eax, edx
mov ebp, eax
mov esi, ebp
push edi
call fcn.100558d0
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x1c]
cmp ecx, ebx
je 0x100300aa
push ebp
push ecx
push eax
call fcn.1010c900
add esp, 0xc
mov esi, dword [esp + 0x28]
jmp 0x100300b2
xor edi, edi
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x30]
push eax
push edi
mov dword [esi + 4], edi
call fcn.1002fdc0
add esp, 8
cmp dword [esp + 0x34], ebx
je 0x100300f3
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100300ee
test al, 0x10
je 0x100300ee
mov eax, 1
jmp 0x100300f0
xor eax, eax
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x1003ffe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax + 0x1c]
push esi
push 0x10230110
push eax
call fcn.10106a11
mov esi, eax
add esp, 8
test esi, esi
jne 0x1004001e
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ecx + 0x1c]
push edx
push str.External_font_file__s_vanished
or edx, 0xffffffff
call fcn.1001d950
add esp, 8
pop esi
xor eax, eax
pop ebp
ret 4
push 2
push 0
push esi
call fcn.10108b83
add esp, 0xc
test eax, eax
je 0x10040053
mov eax, dword [ebp + 0x4c]
mov ecx, dword [eax + 0x1c]
push ecx
push str.Cannot_seek_to_end_of__s
or edx, 0xffffffff
call fcn.1001d950
push esi
call fcn.10106b5b
add esp, 0xc
pop esi
xor eax, eax
pop ebp
ret 4
push esi
call fcn.10108a8b
push 0
push 0
push esi
mov dword [edi], eax
call fcn.10108b83
add esp, 0x10
test eax, eax
je 0x1004007a
mov edx, dword [ebp + 0x4c]
mov eax, dword [edx + 0x1c]
push eax
push str.Cannot_seek_to_start_of__s
jmp 0x1004003b
mov eax, dword [edi]
push ebx
test eax, eax
ja 0x10040085
xor ebx, ebx
jmp 0x1004008c
call fcn.100550f0
mov ebx, eax
mov ecx, dword [edi]
push esi
push ecx
push 1
push ebx
call fcn.101088d1
add esp, 0x10
cmp eax, dword [edi]
je 0x100400b6
mov edx, dword [ebp + 0x4c]
mov eax, dword [edx + 0x1c]
push eax
push str.Error_reading_external_font_file__s
or edx, 0xffffffff
call fcn.1001d950
add esp, 8
push esi
call fcn.10106b5b
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
Function at 0x100b5d90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x101be43c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x102832a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x1c]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x40], ecx
mov edx, dword [edi + 0x44]
lea eax, [edi + 0x48]
push eax
lea ecx, [esi + 0x48]
mov dword [esi + 0x44], edx
call fcn.10007250
mov dword [esp + 0x14], 0
lea ecx, [edi + 0x4c]
push ecx
lea ecx, [esi + 0x4c]
call fcn.10007250
mov byte [esp + 0x14], 1
lea edx, [edi + 0x50]
push edx
lea ecx, [esi + 0x50]
call fcn.10007250
mov byte [esp + 0x14], 2
add edi, 0x54
push edi
lea ecx, [esi + 0x54]
call fcn.10007250
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x100bae00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101bf7e2
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x102832a0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
lea eax, [esi + 0xc]
push eax
call fcn.100c0800
mov dword [esp + 0x10], 0
lea ecx, [esi + 0x20]
call fcn.100073a0
mov byte [esp + 0x10], 1
lea ecx, [esi + 0x30]
push ecx
call fcn.100c0ca0
mov byte [esp + 0x10], 2
lea edx, [esi + 0x44]
push edx
call fcn.100c0e50
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x100bae80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101bf37a
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x102832a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
mov eax, 2
mov dword [esp + 0x18], eax
lea esi, [edi + 0x44]
mov dword [esp + 0xc], esi
mov byte [esp + 0x18], al
call fcn.100c0d00
mov al, 1
mov byte [esp + 0x18], al
lea esi, [edi + 0x30]
mov dword [esp + 0xc], esi
mov byte [esp + 0x18], al
call fcn.100c0b30
mov byte [esp + 0x18], 0
lea ecx, [edi + 0x20]
call fcn.100072b0
or eax, 0xffffffff
mov dword [esp + 0x18], eax
lea esi, [edi + 0xc]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
call fcn.100c06f0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x100bafe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101c1092
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x102832a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx]
mov dword [esi], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
lea eax, [esi + 0xc]
lea edi, [ebx + 0xc]
push eax
mov dword [esi + 8], edx
call fcn.100c0780
mov dword [esp + 0x14], 0
lea ecx, [ebx + 0x20]
push ecx
lea ecx, [esi + 0x20]
call fcn.10007250
mov byte [esp + 0x14], 1
mov edx, dword [ebx + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [ebx + 0x2c]
lea edx, [esi + 0x30]
lea edi, [ebx + 0x30]
push edx
mov dword [esi + 0x2c], ecx
call fcn.100c0c20
mov byte [esp + 0x14], 2
lea eax, [esi + 0x44]
lea edi, [ebx + 0x44]
push eax
call fcn.100c0dd0
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x100c34e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c0c50
mov eax, dword fs:[0]
push eax
sub esp, 0x510
mov eax, dword [0x102832a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x118]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea esp, [esp]
cmp byte [esi], 0
je 0x100c3564
push esi
call edi
cmp eax, 3
jne 0x100c3587
push 0
push 0
push 0
push 0
add ebx, 4
push ebx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1010583a
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100c3590
sub eax, edx
lea esi, [esi + eax + 1]
jmp 0x100c3540
Function at 0x100ef090
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
movzx ecx, word [esi + 0x6244]
mov edx, dword [esi]
xor eax, eax
push edi
mov edi, dword [esp + 0x24]
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx + 8]
push edi
push eax
call ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x1c]
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x100ef280
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x1c]
push eax
call ecx
add esp, 4
sub eax, 0x4d
jne 0x100ef280
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x1c]
push eax
call ecx
add esp, 4
sub eax, 0x52
jne 0x100ef280
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x1c]
push ebp
push eax
call ecx
imul eax, eax, 0x101
push esi
mov word [esi + 0x6244], ax
call fcn.100d8280
mov edx, dword [esi]
mov ecx, dword [edx + 0x18]
lea edi, [eax + edi + 8]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x30], edi
call ecx
mov ebp, eax
add esp, 0xc
cmp ebp, edi
jge 0x100ef25b
push ebx
xor edi, edi
lea ebx, [edi + 4]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x1c]
push eax
call ecx
shl edi, 8
add esp, 4
or edi, eax
sub ebx, 1
jne 0x100ef148
push esi
call fcn.100d8280
add esp, 4
mov dword [esp + 0x1c], eax
cmp edi, 0x505244
je 0x100ef1fe
cmp edi, 0x545457
je 0x100ef1dd
cmp edi, 0x574247
jne 0x100ef22a
push esi
call fcn.100d8280
lea edx, [esi + 0x6495]
push str.A200
push edx
call fcn.10106e60
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 3
xor edi, edi
push esi
call fcn.100d81e0
movzx eax, ax
mov ecx, edi
sar ecx, 1
mov dword [esp + 0x1c], eax
xor ecx, edi
xor ecx, ebx
fild dword [esp + 0x1c]
inc edi
add esp, 4
cmp edi, 4
fstp dword [esi + ecx*4 + 0xe6c4]
jl 0x100ef1b2
jmp 0x100ef22a
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x18]
push eax
call ecx
push eax
push esi
call fcn.100eeaa0
mov edx, dword [esp + 0x34]
add esp, 0xc
mov dword [esi + 0x6590], edx
jmp 0x100ef22a
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 8]
push 1
push 8
push ecx
call edx
push esi
call fcn.100d81e0
movzx eax, ax
push esi
mov dword [esp + 0x24], eax
call fcn.100d81e0
movzx ecx, ax
add esp, 0x14
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
lea ecx, [eax + ebp + 8]
mov eax, dword [esi + 4]
push 0
push ecx
mov ecx, dword [edx + 8]
push eax
call ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x18]
push eax
call ecx
mov ebp, eax
add esp, 0x10
cmp ebp, dword [esp + 0x28]
jl 0x100ef143
pop ebx
mov dx, word [esp + 0xc]
mov ax, word [esp + 0x10]
mov cx, word [esp + 0x1c]
mov word [esi + 0x65fc], dx
mov word [esi + 0x65fe], ax
mov word [esi + 0x6244], cx
pop ebp
pop edi
pop esi
add esp, 0x14
ret
Function at 0x10104bc0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
sub ecx, 0x10
mov dword [esi], vtable.COleDispatchException.0
call fcn.10007360
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
call fcn.10007360
mov ecx, dword [esi + 0xc]
sub ecx, 0x10
pop esi
jmp fcn.10007360

Function at 0x1010583a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102832a0]
jne 0x10105844
repz ret
jmp fcn.1011153a

Function at 0x10121296
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x101212c7
call fcn.1010e1f6
mov dword [eax], esi
call fcn.1010e1e3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10111b6d
add esp, 0x14
push 0x16
pop eax
jmp 0x1012131c
test dword [ebp + 0xc], 0xfffffff9
jne 0x101212a3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x101212f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1010e209
pop ecx
call fcn.1010e1e3
mov eax, dword [eax]
jmp 0x1012131c
test al, 0x10
jne 0x1012131a
test al, 1
je 0x1012131a
test byte [ebp + 0xc], 2
je 0x1012131a
call fcn.1010e1f6
mov dword [eax], 5
call fcn.1010e1e3
mov dword [eax], 0xd
jmp 0x101212eb
xor eax, eax
pop esi
pop ebp
ret
Function at 0x101220ae
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.10113dc7
and dword [ebp - 4], 0
cmp dword [0x102af504], 0
mov ebx, eax
jne 0x1012215f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10122210
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101dc348
push edi
call esi
test eax, eax
je 0x10122210
push eax
call fcn.10113d55
mov dword [esp], 0x101dc338
push edi
mov dword [0x102af504], eax
call esi
push eax
call fcn.10113d55
mov dword [esp], 0x101dc324
push edi
mov dword [0x102af508], eax
call esi
push eax
call fcn.10113d55
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102af50c], eax
call esi
push eax
call fcn.10113d55
pop ecx
mov dword [0x102af514], eax
test eax, eax
je 0x1012215f
push 0x101dc2f0
push edi
call esi
push eax
call fcn.10113d55
pop ecx
mov dword [0x102af510], eax
mov eax, dword [0x102af510]
cmp eax, ebx
je 0x101221b7
cmp dword [0x102af514], ebx
je 0x101221b7
push eax
call fcn.10113dd0
push dword [0x102af514]
mov esi, eax
call fcn.10113dd0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101221b7
test edi, edi
je 0x101221b7
call esi
test eax, eax
je 0x101221ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101221ae
test byte [ebp - 0xc], 1
jne 0x101221b7
or dword [ebp + 0x10], 0x200000
jmp 0x101221f0
mov eax, dword [0x102af508]
cmp eax, ebx
je 0x101221f0
push eax
call fcn.10113dd0
pop ecx
test eax, eax
je 0x101221f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101221f0
mov eax, dword [0x102af50c]
cmp eax, ebx
je 0x101221f0
push eax
call fcn.10113dd0
pop ecx
test eax, eax
je 0x101221f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102af504]
call fcn.10113dd0
pop ecx
test eax, eax
je 0x10122210
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10122212
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101b0570
Capabilities:
Hash data with crc32

Disassembly:
xor ecx, ecx
lea edx, [esi + 0xa48]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x101b0586
xor eax, 0xedb88320
test al, 1
je 0x101b0593
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b0595
shr eax, 1
test al, 1
je 0x101b05a2
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05a4
shr eax, 1
test al, 1
je 0x101b05b1
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05b3
shr eax, 1
test al, 1
je 0x101b05c0
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05c2
shr eax, 1
test al, 1
je 0x101b05cf
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05d1
shr eax, 1
test al, 1
je 0x101b05de
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05e0
shr eax, 1
test al, 1
je 0x101b05ed
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05ef
shr eax, 1
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x101b0578
mov byte [esi + 0xe48], 1
ret

Function at 0x101b0610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
cmp byte [esi + 0xe48], 0
push edi
mov edi, ecx
jne 0x101b0629
call fcn.101b0570
xor eax, eax
test ebx, ebx
jle 0x101b064b
nop
movzx ecx, byte [eax + ebp]
xor ecx, edi
and ecx, 0xff
shr edi, 8
xor edi, dword [esi + ecx*4 + 0xa48]
inc eax
cmp eax, ebx
jl 0x101b0630
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x402aac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047a0
test esi, esi
jne 0x402ae2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404890
jmp 0x402b00
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c0
mov edi, eax
test esi, esi
je 0x402b00
cmp dword [ebx], 0
je 0x402b00
dec esi
jmp 0x402ae9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4038a0
Capabilities:
Query or enumerate registry value

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

Function at 0x404604
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49d04c], 0
je 0x404665
cmp word [0x49d220], 0xd7b2
jne 0x40462d
cmp dword [0x49d228], 0
jbe 0x40462d
mov eax, 0x49d21c
call dword [0x49d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49b070
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 0x40468c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49b030], 0
jne 0x404681
push 0
push 0x49b068
push 0x49b070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f4c
Capabilities:
Get geographical location

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 0x406070
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ec3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406070
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ec3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40608c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405f4c
xor eax, eax
push ebp
push 0x405f45
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c88
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 0x405f2a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4060ac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f2a
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 0x405f4c
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 0x406066
cmp byte [ebp - 0xd], 0
jne 0x405f93
cmp byte [ebp - 0x12], 0
je 0x406066
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405fac
dec ebx
cmp byte [ebx], 0x2e
je 0x405fbb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405fab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406066
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ff8
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 0x406066
cmp byte [ebp - 0xd], 0
je 0x406066
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 0x406066
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