joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007af00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [0x100d73d4]
mov dword [ebp - 4], eax
jmp 0x1007af27
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1007af40
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1007af3e
mov eax, dword [ebp - 4]
jmp 0x1007afc4
jmp 0x1007af1f
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.1007d483
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1007afc1
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x1007af83
mov edx, dword [ebp - 4]
mov eax, dword [0x100d73d4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100d73d4], ecx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.1007d483
mov esp, ebp
pop ebp
ret

Function at 0x1007b4c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x1007b510
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x1007b510
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x1007b510
xor eax, eax
jmp 0x1007b551
mov dword [ebp - 4], 1
jmp 0x1007b522
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1007b54c
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x1007b54a
xor eax, eax
jmp 0x1007b551
jmp 0x1007b519
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1003292f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10023bc9
call fcn.10022973
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x418], eax
push 0x60
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.100339be
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x100329a4
push 2
mov ecx, esi
call fcn.100339be
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x100329a4
call fcn.10031dc9
mov esi, eax
jmp 0x10032a78
push dword [ebp - 0x41c]
push ebx
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100329c2
call fcn.10031dc9
jmp 0x10032a6b
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
je 0x100329b8
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x100329f4
mov esi, 0x8007000e
jmp 0x10032a6d
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1003f81c
jmp 0x10032a1e
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x100329ed
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100329b8
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.1003f81c
mov esi, eax
test edi, edi
je 0x10032a78
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10032a91
lea ecx, [ebp - 0x418]
call fcn.10032083
lea ecx, [ebp - 0x428]
call fcn.1003150e
mov eax, esi
call fcn.10022963
ret 0x10
Function at 0x1003f81c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1003f82b
pop dword [ebp - 8]
mov eax, 0x4a3bd846
add eax, 0xc5c81fe5
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x642c1bd4
sub dword [ebp - 0x18], 0x15d9d689
mov dword [ebp - 0x14], 0x98ae173a
sub dword [ebp - 0x14], 0x667acaf5
mov dword [ebp - 0x10], 0x2f673c1d
add dword [ebp - 0x10], 0x1ce50811
mov dword [ebp - 0xc], 0x50974de9
sub dword [ebp - 0xc], 0x50974de9
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xca099d18
sub dword [ebp - 0x18], 0x559733c2
mov dword [ebp - 0x14], 0x4f9863a8
sub dword [ebp - 0x14], 0xe2c0233
mov dword [ebp - 0x10], 0xc5db2b0e
sub dword [ebp - 0x10], 0x626bbea2
mov dword [ebp - 0xc], 0x2bbcb484
add dword [ebp - 0xc], 0xd4434b7c
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x1554d104
sub eax, 0x54c40c8
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x63a47
push 0
call eax
mov ecx, 0xeb714d26
add ecx, 0x148effe8
xor edx, edx
add edx, eax
mov edi, 0x100b6400
add edi, dword [ebp - 8]
mov esi, 0x7a86f300
add esi, 0xe38e2629
mov dword [ebp - 4], 0xb5338bf6
mov ebx, dword [edi]
sub dword [ebp - 4], ecx
xor ebx, esi
add dword [ebp - 4], 0x9b8c6c5e
mov dword [edx], ebx
add dword [ebp - 4], ecx
add edx, 0x3ea97e7c
add edx, 0xc1568188
add edi, 4
loop 0x1003f944
add eax, 0x5a7c3b58
add eax, 0xa584ebb3
mov ebx, eax
add eax, 5
mov ecx, 0x7a042d2
add ecx, 0x85fbd2e
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x1004807d
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x100481de
push 0x29
pop edi
mov edx, 0x10000000
cmp eax, 0x7c
je 0x100481de
cmp eax, edi
jne 0x100480be
cmp dword [esi + 0x10], 0
mov eax, edi
jne 0x100481de
cmp eax, edi
jne 0x100480be
test dword [esi + 0x50], edx
je 0x100481e4
cmp eax, 0x2e
jne 0x100480d9
push 5
lea ecx, [esi + 0x24]
call fcn.1003f81c
mov ecx, esi
call fcn.10049c8b
jmp 0x100481c9
cmp eax, 0x5c
jne 0x1004812e
mov ecx, esi
call fcn.10049c8b
test byte [esi + 0x50], 0x80
je 0x10048122
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x1004810a
push 4
lea ecx, [esi + 0x24]
call fcn.1003f81c
mov ecx, esi
call fcn.10049c8b
jmp 0x100481d0
cmp eax, 0x42
jne 0x10048122
push 4
lea ecx, [esi + 0x24]
call fcn.1003f81c
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x100480fe
mov ecx, esi
call fcn.1003f81c
jmp 0x100481c9
cmp eax, 0x5b
jne 0x1004814e
mov ecx, esi
call fcn.10049c8b
mov ecx, esi
call fcn.1004877d
push 4
push 0x5d
mov ecx, esi
call fcn.1003f81c
jmp 0x100481c9
cmp eax, 0x28
jne 0x1004816f
mov ecx, esi
call fcn.10049c8b
mov ecx, esi
call fcn.1004a1aa
push 5
push edi
mov ecx, esi
mov bl, al
call fcn.1003f81c
jmp 0x100481c5
cmp eax, 0x5e
jne 0x1004817b
push 2
jmp 0x100480f6
cmp eax, 0x24
jne 0x10048187
push 3
jmp 0x100480f6
cmp eax, 0x2a
je 0x100481f4
cmp eax, 0x2b
je 0x100481f4
cmp eax, 0x3f
je 0x100481f4
cmp eax, 0x7b
je 0x100481f4
cmp eax, 0x7d
jne 0x100481a5
test dword [esi + 0x50], edx
je 0x100481ec
cmp eax, 0x5d
jne 0x100481af
test dword [esi + 0x50], edx
je 0x100481f0
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.1003f81c
mov ecx, esi
call fcn.10049c8b
mov bl, 1
test bl, bl
je 0x100481d0
mov ecx, esi
call fcn.1003f81c
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x10048093
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
push 6
jmp 0x100481e6
push 4
jmp 0x100481e6
push 0xa
jmp 0x100481e6
Function at 0x1004807e
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x100481de
push 0x29
pop edi
mov edx, 0x10000000
cmp eax, 0x7c
je 0x100481de
cmp eax, edi
jne 0x100480be
cmp dword [esi + 0x10], 0
mov eax, edi
jne 0x100481de
cmp eax, edi
jne 0x100480be
test dword [esi + 0x50], edx
je 0x100481e4
cmp eax, 0x2e
jne 0x100480d9
push 5
lea ecx, [esi + 0x24]
call fcn.1003f81c
mov ecx, esi
call fcn.10049c8b
jmp 0x100481c9
cmp eax, 0x5c
jne 0x1004812e
mov ecx, esi
call fcn.10049c8b
test byte [esi + 0x50], 0x80
je 0x10048122
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x1004810a
push 4
lea ecx, [esi + 0x24]
call fcn.1003f81c
mov ecx, esi
call fcn.10049c8b
jmp 0x100481d0
cmp eax, 0x42
jne 0x10048122
push 4
lea ecx, [esi + 0x24]
call fcn.1003f81c
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x100480fe
mov ecx, esi
call fcn.1003f81c
jmp 0x100481c9
cmp eax, 0x5b
jne 0x1004814e
mov ecx, esi
call fcn.10049c8b
mov ecx, esi
call fcn.1004877d
push 4
push 0x5d
mov ecx, esi
call fcn.1003f81c
jmp 0x100481c9
cmp eax, 0x28
jne 0x1004816f
mov ecx, esi
call fcn.10049c8b
mov ecx, esi
call fcn.1004a1aa
push 5
push edi
mov ecx, esi
mov bl, al
call fcn.1003f81c
jmp 0x100481c5
cmp eax, 0x5e
jne 0x1004817b
push 2
jmp 0x100480f6
cmp eax, 0x24
jne 0x10048187
push 3
jmp 0x100480f6
cmp eax, 0x2a
je 0x100481f4
cmp eax, 0x2b
je 0x100481f4
cmp eax, 0x3f
je 0x100481f4
cmp eax, 0x7b
je 0x100481f4
cmp eax, 0x7d
jne 0x100481a5
test dword [esi + 0x50], edx
je 0x100481ec
cmp eax, 0x5d
jne 0x100481af
test dword [esi + 0x50], edx
je 0x100481f0
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.1003f81c
mov ecx, esi
call fcn.10049c8b
mov bl, 1
test bl, bl
je 0x100481d0
mov ecx, esi
call fcn.1003f81c
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x10048093
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
push 6
jmp 0x100481e6
push 4
jmp 0x100481e6
push 0xa
jmp 0x100481e6
Function at 0x403408
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405ac8
test esi, esi
jne 0x403440
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405c04
jmp 0x40345e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040334c
mov edi, eax
test esi, esi
je 0x40345e
cmp dword [ebx], 0
je 0x40345e
dec esi
jmp 0x403447
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403490
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403b74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d9024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c0c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403bec
xor eax, eax
push ebp
push 0x403be5
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 0x403c44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4d9024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d9024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404d88
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e5054], 0
je 0x404de9
cmp word [0x4e5330], 0xd7b2
jne 0x404db1
cmp dword [0x4e5338], 0
jbe 0x404db1
mov eax, 0x4e532c
call dword [0x4e5348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x404e14
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d9030], 0
jne 0x404e05
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404fb4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4d9034], 0
je 0x404fda
mov edx, esi
mov eax, ebx
call dword [0x4d9034]
jmp 0x404fe9
mov eax, 8
call fcn.00403064
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4e5055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404f7c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408290
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x408574
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
push dword [0x4e2d48]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [esp], eax
push 4
push 0x1000
push dword [0x4e2d54]
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov edi, eax
mov edx, dword [0x4e2d54]
mov ecx, eax
call fcn.004084e4
push 0x104
push edi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov ecx, 0xffffffff
mov eax, dword [0x4e2d38]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x4085d4
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x4085f4
mov edx, ecx
jmp 0x408607
mov word [edi + ecx*2], 0
lea edx, [ecx - 1]
cmp word [edi + ecx*2 - 4], 0x5c
mov ecx, edx
jne 0x4085f4
movzx ecx, byte [eax]
test cl, cl
je 0x408625
lea edx, [edi + edx*2]
xor esi, esi
nop
movsx ecx, cl
mov word [edx + esi*2], cx
movzx ecx, byte [eax + esi + 1]
inc esi
test cl, cl
jne 0x408614
push 0
push 0x80
push 3
push 0
push 1
push 1
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4087cd
mov edi, eax
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
push 4
push 0x1000
push dword [0x4e2d5c]
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov ebx, eax
mov dword [esp + 8], 0
lea eax, [esp + 8]
push 0
push eax
push ebp
push ebx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4087cd
mov ebp, dword [esp + 8]
add ebp, ebx
mov edx, dword [0x4e2d68]
push 0x8d004e2d
xor al, 0x13
mov eax, dword [ebx + edx]
test eax, eax
je 0x4086bc
mov ecx, dword [ebx + edx + 4]
lea edx, [edx + ebx + 8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x409dfc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4e7b64
push 0xa
push 0x409e90
mov eax, dword [0x4e7b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409e20
call fcn.00415214
push ebx
mov eax, dword [0x4e7b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409e37
call fcn.00415214
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409e49
call fcn.00415214
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4e7b68], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4e7b6c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4e7b70], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4e7b74], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4e7b78], ecx
add edx, dword [eax + 0x14]
mov dword [0x4e7b7c], edx
pop esi
pop ebx
ret
Function at 0x40b700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b7a9
test eax, edx
je 0x40b7ac
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b729
push edx
mov edx, eax
mov eax, esp
call fcn.00405ce4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b73f
push eax
lea eax, [esp + 8]
call fcn.00405ce4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b74e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b775
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40b78f
add ecx, 4
js 0x40b766
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b78c
push eax
mov eax, ecx
mov edx, 2
call fcn.00405054
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b773
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b775
xor eax, eax
ret
test eax, eax
je 0x40b7bc
test edx, edx
jne 0x40b710
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405b54
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c962
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40c983
cmp ebx, 3
je 0x40c983
cmp ebx, 0x7b
je 0x40c983
mov eax, esi
call fcn.0040c904
test al, al
jne 0x40c987
xor eax, eax
jmp 0x40c989
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405b54
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c9a5
test al, 0x10
jne 0x40c9a9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cac4
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405b54
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x40cad8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405b54
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40cafa
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x412324
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41235d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405c04
jmp 0x412366
mov eax, ebx
mov edx, esi
call fcn.00405ac8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412370
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412392
movzx eax, word [esp]
jmp 0x412394
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412c68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x412d8d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00412a7c
mov esi, eax
mov eax, dword [0x4e3f34]
cmp byte [eax], 0
je 0x412d35
mov eax, dword [0x4e3b38]
call fcn.00403570
call fcn.004031cc
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x412c44]
call fcn.004074c8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x412da8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x412d71
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e3a9c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e7b50]
call fcn.004075bc
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412d94
lea eax, [ebp - 4]
mov edx, dword [0x412c44]
call fcn.004074d4
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
and dword [eax + 0x3b746840], 0x40
add byte [ebx - 0x3e7fea01], bh
inc eax
add byte [edi + 0x4102ac], dh
xor dh, byte [esp + ecx]
test eax, eax
popfd
invalid

Function at 0x401f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword fs:[edx + 0x30]
nop
jmp 0x401f70
mov ebp, esp
nop
mov edx, dword [edx + 0xc]
nop
jmp 0x401f84
mov edx, dword [edx + 0x14]
nop
jmp 0x401f96
movzx ecx, word [edx + 0x26]
nop
mov esi, dword [edx + 0x28]
jmp 0x401fae
xor edi, edi
nop
xor eax, eax
jmp 0x401fc0
lodsb al, byte [esi]
cmp al, 0x61
jmp 0x401fcf
jl 0x401fe0
nop
nop
sub al, 0x20
nop
jmp 0x401fe0
nop
jmp 0x401ff1
ror edi, 0xd
jmp 0x402004
add edi, eax
dec ecx
jne 0x401fb1
nop
nop
jmp 0x40201c
push edx
jmp 0x40202b
push edi
jmp 0x402039
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
add eax, edx
mov eax, dword [eax + 0x78]
nop
test eax, eax
nop
je 0x40221d
nop
jmp 0x40205e
nop
jmp 0x40206b
add eax, edx
nop
mov ebx, dword [eax + 0x20]
mov ecx, dword [eax + 0x18]
add ebx, edx
push eax
jmp 0x402083
nop
test ecx, ecx
je 0x40220a
nop
jmp 0x40209d
jmp 0x4020ab
dec ecx
mov esi, dword [ebx + ecx*4]
jmp 0x4020bc
add esi, edx
xor edi, edi
nop
nop
xor eax, eax
nop
lodsb al, byte [esi]
ror edi, 0xd
add edi, eax
jmp 0x4020da
cmp al, ah
jmp 0x4020e9
jne 0x4020c1
nop
nop
jmp 0x4020fb
add edi, dword [ebp - 8]
jmp 0x40210b
cmp edi, dword [ebp + 0x24]
jmp 0x40211f
jne 0x402083
nop
jmp 0x402132
jmp 0x40213d
pop eax
jmp 0x402148
mov ebx, dword [eax + 0x24]
nop
jmp 0x40215d
add ebx, edx
nop
jmp 0x40216e
mov cx, word [ebx + ecx*2]
nop
mov ebx, dword [eax + 0x1c]
add ebx, edx
mov eax, dword [ebx + ecx*4]
nop
add eax, edx
jmp 0x402192
mov dword [esp + 0x24], eax
jmp 0x4021a4
pop ebx
nop
jmp 0x4021b4
pop ebx
jmp 0x4021c9
popal
nop
pop ecx
jmp 0x4021e0
pop edx
push ecx
jmp 0x4021f3
jmp eax
jmp 0x40221b
pop eax
nop
pop edi
pop edx
mov edx, dword [edx]
nop
jmp 0x401f88