joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016669
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x1002e138], 0x1f0
mov dword [ebp - 0x10], eax
call fcn.100164f4
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x100166af
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x1002e13c], 0x1eae
mov esi, dword [edx + eax + 0x24]
mov dword [0x1002e138], 0xb82
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x100167d4
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [0x1002e138], 0x2173
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x1001677e
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x1001672d
mov al, byte [ebp - 0x52]
test al, 1
jne 0x100167b1
jmp 0x10016787
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jb 0x10016709
jmp 0x100167d4
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x1002e138], 0x12d8
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10016967
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1002e140], 0
mov dword [0x1002e144], 0
mov dword [0x1002e150], 0
mov dword [0x1002e138], 0x819
cmp eax, 0
sete bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x1d], bl
xor eax, eax
mov cl, byte [ebp - 0x1d]
test cl, 1
mov edx, eax
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
jne 0x10016ae6
jmp 0x100169ef
mov eax, dword [0x1002e140]
mov ecx, dword [0x1002e144]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
mov edi, edx
add edi, 1
add eax, 1
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1002e140], edx
mov dword [0x1002e138], 0x110a
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x1002e144], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x1002e148], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1002e148]
mov edx, dword [0x1002e144]
mov byte [ebx + edx], cl
mov edx, dword [0x1002e140]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1002e144]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov edx, dword [0x1002e138]
mov esi, edx
add esi, 0x154a
mov dword [0x1002e138], esi
and ecx, 0xff
mov dword [0x1002e150], ecx
mov esi, dword [0x1002e13c]
add esi, 0x880
mov dword [0x1002e13c], esi
mov cl, byte [ebx + ecx]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x34]
mov ch, byte [esi + ebx]
add edx, 0xfffff523
mov dword [0x1002e138], edx
mov byte [0x1002e155], ch
mov byte [0x1002e156], cl
xor ch, cl
mov byte [0x1002e154], ch
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x30], edi
jne 0x100169d8
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10016cf6
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [0x1002e138], 0x1c02
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10016d88
mov eax, dword [ebp - 0x14]
mov dword [0x1002e138], 0x848
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x10016da0
jmp 0x10016df5
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x104
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
jl 0x10016d88
jmp 0x10016d2c
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff5
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2], 0x61
je 0x10016db1
jmp 0x10016df5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
je 0x10016d2c
jmp 0x10016d4d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10016d6d
jmp 0x10016df5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10016df5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10016df5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10016df5
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
je 0x10016dfc
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x10016dfc
mov eax, dword [ebp - 0x28]
add esp, 0x28
pop ebp
ret
Function at 0x10016e04
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1002e144], 0
mov byte [0x1002e148], 0
mov dword [0x1002e138], 0x719
mov dword [0x1002e140], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10016e62
xor eax, eax
mov dword [0x1002e140], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x10016ea0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1002e13c]
add eax, 0xfffff13a
mov dword [0x1002e138], eax
mov esi, dword [0x1002e140]
add esi, 1
mov dword [0x1002e140], esi
cmp esi, 0x100
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jl 0x10016e62
jmp 0x10016e4b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
mov dword [ebp - 0x2c], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x1002e14c], 0
mov edi, dword [ebp - 0x2c]
add edi, 0x17b0
mov ebx, dword [0x1002e144]
mov esi, dword [ebp - 0x18]
movzx esi, byte [esi + ecx]
add esi, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add esi, edx
mov dword [0x1002e14c], esi
mov dword [0x1002e13c], 0xde7
mov eax, esi
cdq
mov esi, dword [ebp - 0x30]
idiv esi
mov dword [0x1002e144], edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x1002e148], bl
mov dword [0x1002e138], edi
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov dword [0x1002e138], 0x20e9
mov bl, byte [0x1002e148]
mov ecx, dword [0x1002e144]
mov byte [esi + ecx], bl
mov ecx, dword [0x1002e140]
add ecx, 1
mov dword [0x1002e140], ecx
cmp ecx, 0x100
mov dword [ebp - 0x34], ecx
jge 0x10016f6c
mov eax, dword [0x1002e138]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x10016ea0
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10016f74
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x1002e13c], 0xfffffec1
mov dword [0x1002e138], 0x83
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
jmp 0x10016fac
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1001a72b]
mov dh, byte [eax + 0x1001a6fc]
sub dh, dl
mov byte [ebp + eax - 0x28], dh
cmp ecx, 0xe
mov dword [ebp - 0x34], ecx
jne 0x10016fac
lea eax, [ebp - 0x28]
mov dword [0x1002e13c], 0xe43
mov dword [0x1002e138], 0x1b8b
mov dword [ebp - 0x38], eax
call fcn.10016418
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.10016aee
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x10016fa3
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10015f3d
mov eax, dword [ebp - 0x40]
mov word [eax], 0x5a4d
add eax, 0x3c
mov dword [ebp - 0x44], eax
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov dword [ecx], 0xc0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0xc0], 0x4550
add edx, 0xffc00000
mov dword [0x1002e13c], 0xfc2
mov esi, dword [ebp - 0x30]
mov dword [esi + 0x10], edx
mov edx, dword [ebp - 0x40]
mov dword [esi + 0x38], edx
mov dword [0x1002e138], 0x671
add edx, 0x2649
mov edi, dword [ebp - 0x40]
cmp edi, 0
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], eax
je 0x100170b0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
Function at 0x100171fe
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
call fcn.10001064
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
je 0x100172ca
jmp 0x10017399
mov eax, dword [esp + 0x28]
add eax, 0x3c
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [esp + 0x28]
cmp dword [edx + ecx], 0x4550
mov dword [esp + 0x20], ecx
jne 0x10017372
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x94], ecx
mov dword [0x1002e13c], 0xffffffce
mov edx, dword [esp + 0x20]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x7c], esi
mov dword [0x1002e138], 0x108a
mov esi, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10016f74
mov dword [0x1002e13c], 0x159a
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x1c], eax
jmp 0x10017391
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x28], eax
je 0x10017226
jmp 0x10017372
lea eax, [esp + 0x40]
mov ecx, dword [0x1002e13c]
add ecx, 0xffffe60f
mov dword [0x1002e138], ecx
mov dword [esp + 0x14], eax
call fcn.10016cf6
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
jne 0x10017391
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.1001609a
lea ecx, [0x100171a9]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x74], edx
mov dword [esp + 0x64], 0x13e600
mov edx, dword [0x1002e124]
mov dword [esp + 0x4c], edx
mov edx, dword [0x1002e128]
mov dword [esp + 0x40], edx
mov edx, dword [0x1002e12c]
mov dword [esp + 0x54], edx
mov edx, dword [0x1002e130]
mov dword [esp + 0x58], edx
mov edx, dword [0x1002e134]
mov dword [esp + 0x88], edx
mov dword [0x1002e13c], 0x5db
mov dword [0x1002e138], 0x183f
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
jmp 0x100172b2
mov eax, dword [esp + 0x28]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
jmp 0x100172b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x40453d
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00410600
mov eax, dword [0x282879c]
mov ecx, dword [0x2828228]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x404613
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x282879c], 0x959
jne 0x404601
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x403f20
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0x403f6c
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0x403f98
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
lea eax, [ebp - 0x400]
push eax
push esi
push 0x403fd0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.00404414
add edi, 8
dec ebx
jne 0x404569
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40494a
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1004
call fcn.00410600
push ebx
push esi
xor esi, esi
cmp dword [0x282879c], 0x400
push edi
jne 0x404a4a
push esi
call dword [sym.imp.USER32.dll_GetDC]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [esp + 0x814]
push eax
push 0x4041e0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0x404200
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateA]
push esi
push esi
call fcn.004056da
push esi
push esi
call fcn.00404fe9
push esi
call fcn.00405675
add esp, 0x14
push esi
call fcn.00405974
fldz
sub esp, 0xc
fst qword [esp + 8]
fstp qword [esp]
call fcn.00404b20
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404ca0
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00405130
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404dd0
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004053c0
fstp st(0)
push esi
call fcn.004059e8
add esp, 0xc
push esi
push esi
call fcn.00404eed
push esi
call fcn.00405787
add esp, 0xc
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
xor edi, edi
cmp edi, 0xacd
jge 0x404a77
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
push esi
push esi
push esi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x45be410
jg 0x404a99
inc edi
cmp edi, 0x33309e9
jl 0x404a52
xor edi, edi
cmp edi, 0x16d2a
jge 0x404aaa
push esi
push esi
push esi
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x12e82fe
jg 0x404ac8
inc edi
cmp edi, 0x3011b
jl 0x404a9b
mov eax, dword [0x430c8c]
mov dword [0x282879c], eax
call fcn.00404616
mov edi, 0x2ec37
cmp dword [0x282879c], 0x51f
jne 0x404af4
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x404adc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a70e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d480]
jne 0x40a718
repz ret
jmp fcn.0040f8c0
Function at 0x40f4ea
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a0b8
and dword [ebp - 0x14], 0
cmp dword [0x44545c], 0
mov dword [ebp - 0x18], eax
jne 0x40f59d
push 0x4036c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f645
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4036b4
push ebx
call edi
test eax, eax
je 0x40f645
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4036a4
push ebx
mov dword [0x44545c], eax
call edi
push eax
call esi
push 0x403690
push ebx
mov dword [0x445460], eax
call edi
push eax
call esi
push 0x403674
push ebx
mov dword [0x445464], eax
call edi
push eax
call esi
mov dword [0x44546c], eax
test eax, eax
je 0x40f59d
push 0x40365c
push ebx
call edi
push eax
call esi
mov dword [0x445468], eax
mov eax, dword [0x445468]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f5f6
cmp dword [0x44546c], ecx
je 0x40f5f6
push eax
call esi
push dword [0x44546c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f5f6
test ebx, ebx
je 0x40f5f6
call edi
test eax, eax
je 0x40f5ed
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f5ed
test byte [ebp - 8], 1
jne 0x40f5f6
or dword [ebp + 0x10], 0x200000
jmp 0x40f629
mov eax, dword [0x445460]
cmp eax, dword [ebp - 0x18]
je 0x40f629
push eax
call esi
test eax, eax
je 0x40f629
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f629
mov eax, dword [0x445464]
cmp eax, dword [ebp - 0x18]
je 0x40f629
push eax
call esi
test eax, eax
je 0x40f629
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44545c]
call esi
test eax, eax
je 0x40f645
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f647
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a70e
leave
ret
Function at 0x41b277
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41b2b6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b2b6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b2b6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41b2b6
cmp dword [ecx + 0x74], 0xe
jbe 0x41b2b6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41dd74
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x5f9ca0
push str.FlsAlloc
push 0x1f
call fcn.0041da46
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41dda8
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x41ddae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ddf2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x5f9cc4
push str.FlsGetValue
push 0x21
call fcn.0041da46
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41de29
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41de31
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x5f9cd8
push str.FlsSetValue
push 0x22
call fcn.0041da46
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41de6b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x420438
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6444dc]
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 0x420483
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00420694
test al, al
jne 0x42047d
sub edx, 2
cmp edx, edi
jne 0x420463
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4204a5
lea eax, [edi + 2]
cmp edx, eax
je 0x4204a5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004200ff
add esp, 0x10
jmp 0x42059f
push esi
lea ecx, [ebp - 0x255]
call fcn.00420694
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 0x4204e8
push dword [ebp - 0x25c]
jmp 0x420495
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 0x420525
cmp word [ebp - 0x226], 0
je 0x420546
cmp word [ebp - 0x226], ax
jne 0x420525
cmp word [ebp - 0x224], 0
je 0x420546
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004200ff
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x420592
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4204ff
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42057a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42059f
push 0x41fb4f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00427ba0
add esp, 0x10
jmp 0x42056f
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.00417d0f
leave
ret

Function at 0x4232c7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041c5eb
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x423336
cmp esi, dword [ebp - 4]
je 0x423331
cmp dword [ebp + 0xc], 0
je 0x423331
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42330e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00422e19
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x423338
xor eax, eax
inc eax
jmp 0x423338
xor eax, eax
pop edi
pop esi
leave
ret