joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aaa8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d4058], 0
je 0x40ab0f
cmp word [0x4d4344], 0xd7b2
jne 0x40aad1
cmp dword [0x4d434c], 0
jbe 0x40aad1
mov eax, 0x4d4340
call dword [0x4d435c]
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
mov eax, 0x40ab3c
call fcn.0040b67c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d002e], 0
jne 0x40ab2b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40acd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4d0030], 0
je 0x40acfb
mov edx, edi
mov eax, esi
call dword [0x4d0030]
mov ebx, eax
jmp 0x40ad0c
mov eax, 8
call fcn.00406f80
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d4059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40ac98
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40ad3c
mov eax, ebx
call fcn.00406f9c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40e5d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40e737
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040ae10
cmp si, word [0x4d0a08]
jb 0x40e668
cmp si, word [0x4d0c08]
ja 0x40e668
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e668
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d0a08]
jae 0x40e642
mov edi, ebx
dec edi
jmp 0x40e663
cmp si, word [ebx*8 + 0x4d0a08]
jbe 0x40e652
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e663
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d0a0c]
call fcn.0040e4ec
jmp 0x40e668
cmp edi, dword [ebp - 8]
jae 0x40e62c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e717
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e717
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b96c
push dword [ebp - 0x160]
push 0x40e754
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b96c
push dword [ebp - 0x164]
push 0x40e764
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b96c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040bba4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e73e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040ae70
pop eax
jmp eax
Function at 0x40e8ec
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e9f2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d6c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d6c28]
jne 0x40e938
mov eax, esi
mov edx, 0x4d6c2a
mov ecx, 0x55
call fcn.0040b96c
push 0x4d6c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e9da
push 0x4d6c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040ae10
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e9a7
cmp byte [0x4d6c0c], 0
je 0x40e96c
mov edx, esi
mov eax, ebx
call fcn.0040e7d0
jmp 0x40e9a7
mov edx, esi
mov eax, ebx
call fcn.0040e5d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e9a7
cmp dword [esi], 0
je 0x40e990
mov eax, esi
mov edx, 0x40ea0c
call fcn.0040bac4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e5d0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040bac4
push 0x4d6c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d6c28], bx
mov eax, dword [esi]
call fcn.0040b8cc
mov ecx, eax
mov eax, 0x4d6c2a
mov edx, 0xaa
call fcn.0040e44c
push 0x4d6c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9f9
lea eax, [ebp - 4]
call fcn.0040ae10
pop eax
jmp eax
Function at 0x425e18
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x425e3c
movzx eax, word [esp]
jmp 0x425e3e
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x427558
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 0x42767f
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00427360
mov esi, eax
mov eax, dword [0x4d3bdc]
cmp byte [eax], 0
je 0x427625
mov eax, dword [0x4d3a28]
call fcn.00407d0c
call fcn.004070f4
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x427528]
call fcn.0040db54
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x427698
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x427661
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4d39ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d7634]
call fcn.0040e0f0
push eax
call sub.user32.dll_LoadStringW
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 0x427686
lea eax, [ebp - 4]
mov edx, dword [0x427528]
call fcn.0040dc78
pop eax
jmp eax
Function at 0x43b8b8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x43b8c0
mov eax, edx
pop esi
pop ebx
ret

Function at 0x43e50c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x43e523
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x43e513
mov eax, ecx
pop ebx
ret

Function at 0x44ee58
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x44ee6c
add esp, 0xfffffff0
call fcn.00409650
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x448ef4]
call fcn.0046c810
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x44de94]
call fcn.0046f5e0
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x44de94]
call fcn.0046f5e0
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x44eec1
call fcn.004096a8
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b0aa4
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4b0ae7
cmp byte [ebx + 0x11], 0
jne 0x4b0ae7
cmp byte [ebx + 0x24], 0
jne 0x4b0ae7
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b0afe
mov ecx, dword [0x4d3b98]
mov dl, 1
mov eax, dword [0x4841a0]
call fcn.004277e4
call fcn.0040a508
pop ebx
ret
mov ecx, dword [0x4d3b98]
mov dl, 1
mov eax, dword [0x4841a0]
call fcn.004277e4
call fcn.0040a508
pop ebx
ret

Function at 0x4b13f8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b1446
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004b0950
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b145f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b1468
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004b0950
dec esi
jne 0x4b148a
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x403203
pop dword [ebp - 0x20]
mov eax, 0x403203
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xe78f1596
sub dword [ebp - 0x30], 0x993cd04b
mov dword [ebp - 0x2c], 0xd56a7537
sub dword [ebp - 0x2c], 0xa33728f2
mov dword [ebp - 0x28], 0xf693f2cf
sub dword [ebp - 0x28], 0xaa47aea1
mov dword [ebp - 0x24], 0x59a8adc8
add dword [ebp - 0x24], 0xa6575238
lea eax, [ebp - 0x30]
push eax
mov eax, 0x3f0f6f22
add eax, 0xc131116a
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x77430ee8
add dword [ebp - 0x30], 0xfd2f5a6e
mov dword [ebp - 0x2c], 0x4f2fafdb
add dword [ebp - 0x2c], 0xf23cb19a
mov dword [ebp - 0x28], 0xf0849acf
sub dword [ebp - 0x28], 0x8d152e63
mov dword [ebp - 0x24], 0x333e7e24
sub dword [ebp - 0x24], 0x333e7e24
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x7109ad8d
add eax, 0x8f36d347
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x37fad
push 0
call eax
mov ecx, 0x9ebd4d00
sub ecx, 0x9ebcff75
xor edi, edi
add edi, eax
mov esi, 0x7af98aeb
sub esi, 0x7ab87aeb
add esi, dword [ebp - 0x20]
mov ebx, 0x6a5764d0
sub ebx, 0x7811a13f
sub dword [ebp - 0x14], edx
mov edx, dword [esi]
sub dword [ebp - 0x14], edi
xor edx, ebx
add dword [ebp - 4], 0xb8b447cb
mov dword [edi], edx
sub dword [ebp - 0x1c], 0x5c8ddaa1
add edi, 4
add esi, 0x5eddc553
add esi, 0xa1223ab1
loop 0x403322
add eax, 0x128ff
mov ebx, eax
add eax, 0x17bb0937
add eax, 0xe844f6ce
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40288e
pop dword [ebp - 0x1c]
mov eax, 0x40288e
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x26fc5d76
add dword [ebp - 0x2c], 0x2755e7d5
mov dword [ebp - 0x28], 0x47b4b59d
add dword [ebp - 0x28], 0xea7e96a8
mov dword [ebp - 0x24], 0x6dec51dd
sub dword [ebp - 0x24], 0x21a00daf
mov dword [ebp - 0x20], 0x32baa6c8
add dword [ebp - 0x20], 0xcd455938
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x94b8537c
sub eax, 0x9477e318
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x9bf1a23e
sub dword [ebp - 0x2c], 0x277f38e8
mov dword [ebp - 0x28], 0x47b4ff1d
sub dword [ebp - 0x28], 0x6489da8
mov dword [ebp - 0x24], 0xf8e9e401
sub dword [ebp - 0x24], 0x957a7795
mov dword [ebp - 0x20], 0x59f4f61b
sub dword [ebp - 0x20], 0x59f4f61b
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x25718baa
sub eax, 0x25311b02
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b716
push 0
call eax
mov ecx, 0xde5f94c6
add ecx, 0x21a0c69d
mov ebx, eax
mov esi, 0xed3780be
add esi, 0x13097f42
add esi, dword [ebp - 0x1c]
mov edi, 0xdbfa87e6
sub edi, 0x898426a4
xor dword [ebp - 0x18], 0x3e1d20cb
mov edx, dword [esi]
mov dword [ebp - 4], 0x96952e2
xor edx, edi
add dword [ebp - 0xc], 0x62942205
mov dword [ebx], edx
xor dword [ebp - 4], edx
add ebx, 4
add esi, 4
loop 0x4029ab
add eax, 0xf51b5caa
add eax, 0xae603b5
mov ebx, eax
add eax, 0xbf87b57f
add eax, 0x40784a86
mov ecx, 0xc02f13f8
add ecx, 0x4010ec08
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x10001d00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x14c
mov edx, dword [esi + 0x3c]
lea eax, [esi + 0x88]
add eax, edx
lea ecx, [esi + 0x78]
add ecx, edx
cmp word [edx + esi + 4], di
cmovne ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x10001e35
cmp dword [ebp + 0x10], 0
lea ecx, [eax + esi]
mov dword [ebp - 8], ecx
ja 0x10001d7c
mov eax, dword [ebp + 0xc]
jb 0x10001d4b
cmp eax, 0xffff
ja 0x10001d7c
movzx edx, ax
xor eax, eax
sub edx, dword [ecx + 0x10]
sbb eax, eax
test eax, eax
ja 0x10001e35
jb 0x10001d68
cmp edx, dword [ecx + 0x14]
jae 0x10001e35
mov eax, dword [ecx + 0x1c]
pop edi
lea eax, [eax + edx*4]
mov eax, dword [eax + esi]
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x20]
add eax, esi
mov dword [ebp - 0x14], eax
add edx, esi
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x18], eax
jbe 0x10001e35
nop word [eax + eax]
mov ebx, dword [edx + eax*4]
add ebx, esi
mov esi, ebx
mov dword [ebp - 0xc], ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10001db0
sub esi, ecx
call fcn.10002780
push 0xeeeeeeee
push 0x7fed7fed
mov edi, eax
push edi
push 1
push esi
push ebx
call fcn.10002680
push 0xeeeeeeee
push 0x7fed7fed
push edi
push 2
push esi
push dword [ebp - 0xc]
mov ebx, eax
call fcn.10002680
xor ecx, ecx
or ecx, ebx
cmp dword [ebp + 0xc], eax
jne 0x10001dfa
cmp dword [ebp + 0x10], ecx
je 0x10001e11
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ecx + 0x18]
jae 0x10001e35
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
jmp 0x10001da0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
movzx ecx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx]
add eax, ecx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100026e1
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x100026a2
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x402c00
pop dword [ebp - 0x18]
mov eax, 0x402c00
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x597936fb
add dword [ebp - 0x28], 0xf4d90e50
mov dword [ebp - 0x24], 0xfe5aefff
add dword [ebp - 0x24], 0x33d85c46
mov dword [ebp - 0x20], 0xfc6a7e17
sub dword [ebp - 0x20], 0xb01e39e9
mov dword [ebp - 0x1c], 0xab386ec5
sub dword [ebp - 0x1c], 0xab386ec5
lea eax, [ebp - 0x28]
push eax
mov eax, 0x996b8d79
sub eax, 0x992b0ced
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x216220a5
sub dword [ebp - 0x28], 0xacefb74f
mov dword [ebp - 0x24], 0x614958d1
sub dword [ebp - 0x24], 0x1fdcf75c
mov dword [ebp - 0x20], 0xf76cc53c
add dword [ebp - 0x20], 0x6c02a730
mov dword [ebp - 0x1c], 0xb46952d9
add dword [ebp - 0x1c], 0x4b96ad27
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xea434363
sub eax, 0xea02c28f
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3b1fe
push 0
call eax
mov ecx, 0x4347dae7
sub ecx, 0x43478129
mov edi, eax
mov edx, 0x411000
add edx, dword [ebp - 0x18]
mov esi, 0xbd090e1f
sub esi, 0x8a74f6e5
mov dword [ebp - 0xc], 0xa28af556
mov ebx, dword [edx]
xor dword [ebp - 0xc], ebx
sub ebx, esi
sub dword [ebp - 8], edi
mov dword [edi], ebx
mov dword [ebp - 8], 0xc1c2031e
add edi, 0x2a8cdf25
sub edi, 0x2a8cdf21
add edx, 0x4defa0a7
add edx, 0xb2105f5d
loop 0x402d17
add eax, 0xa22d59fb
add eax, 0x5dd3ffd0
xor ebx, ebx
add ebx, eax
add eax, 0xcd2d370d
sub eax, 0xcd2d3708
mov ecx, 0xd5a1dbc6
sub ecx, 0xd561dbc6
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x402700
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x496200]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x49db60], 0
je 0x40272e
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00430b83
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.0042f3d2
add esp, 4
test eax, eax
je 0x40274c
push 0
mov ecx, eax
call fcn.00402550
mov dword [0x49db60], eax
jmp 0x402756
mov dword [0x49db60], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.00403890
mov ecx, dword [0x49db60]
lea eax, [esp + 4]
push eax
call fcn.00403240
cmp dword [esp + 0x18], 8
jb 0x402789
push dword [esp + 4]
call fcn.0042f386
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.00430b83
mov esp, ebp
pop ebp
ret

Function at 0x403240
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x496200]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
xor ecx, ecx
mov dword [esp + 0x20], 7
mov word [esp + 0xc], cx
lea ecx, [esp + 0xc]
push ecx
push 3
push eax
mov dword [esp + 0x28], 0
call fcn.00410180
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x4032c8
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.00402810
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x4032db
push dword [esp + 0xc]
call fcn.0042f386
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.00430b83
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40c22e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40c24e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c262
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret