joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c150
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebp, ebp
push edi
je 0x41c30a
push 0x3d
push ebp
call fcn.0041d1d0
mov esi, eax
add esp, 8
test esi, esi
je 0x41c30a
cmp ebp, esi
je 0x41c30a
xor eax, eax
mov ecx, dword [0x425284]
cmp word [esi + 2], ax
sete al
mov edi, eax
mov eax, dword [0x425280]
cmp eax, ecx
mov dword [esp + 0x10], edi
jne 0x41c1aa
push eax
call fcn.0041c3e0
add esp, 4
mov dword [0x425280], eax
test eax, eax
jne 0x41c22a
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov ecx, dword [0x425278]
je 0x41c1d2
test ecx, ecx
je 0x41c1d2
call fcn.0041d150
test eax, eax
je 0x41c225
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test edi, edi
je 0x41c1de
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ecx, ecx
jne 0x41c204
push 4
call fcn.0040aae0
add esp, 4
mov dword [0x425278], eax
test eax, eax
je 0x41c30a
mov dword [eax], 0
mov eax, dword [0x425280]
test eax, eax
jne 0x41c22a
push 4
call fcn.0040aae0
add esp, 4
mov dword [0x425280], eax
test eax, eax
je 0x41c30a
mov dword [eax], 0
mov eax, dword [0x425280]
mov ecx, dword [esp + 0x18]
sub esi, ebp
mov ebp, esi
mov ebx, eax
sar ebp, 1
push ebp
push ecx
call fcn.0041c360
mov esi, eax
add esp, 8
test esi, esi
jl 0x41c31c
cmp dword [ebx], 0
je 0x41c31c
test edi, edi
je 0x41c313
mov edx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push edx
call fcn.0040af40
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x41c283
mov eax, edi
mov ecx, dword [eax + 4]
add eax, 4
mov dword [edi], ecx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x41c272
lea edx, [esi*4]
push edx
push ebx
call fcn.0040ad20
add esp, 8
test eax, eax
je 0x41c29d
mov dword [0x425280], eax
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41c302
mov eax, dword [esp + 0x18]
push eax
call fcn.00410410
add esp, 4
lea ecx, [eax + eax + 4]
push ecx
call fcn.0040aae0
mov esi, eax
add esp, 4
test esi, esi
je 0x41c302
mov edx, dword [esp + 0x18]
push edx
push esi
call fcn.0041d120
add esp, 8
lea eax, [esi + ebp*2 + 2]
neg edi
sbb edi, edi
mov word [esi + ebp*2], 0
not edi
and edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040af40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
mov dword [ebx + esi*4], eax
jmp 0x41c2a1
test edi, edi
jne 0x41c302
test esi, esi
jge 0x41c326
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040ad20
add esp, 8
test eax, eax
je 0x41c30a
mov edx, dword [esp + 0x18]
mov dword [eax + esi*4], edx
mov dword [eax + esi*4 + 4], 0
mov dword [0x425280], eax
jmp 0x41c2a1
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x54250f50
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x140d108d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4016c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40a00f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
mov ebp, ecx
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 4]
lea ecx, [edi + esi]
cmp ecx, eax
jle 0x4016fb
mov esi, eax
sub esi, edi
cmp edi, eax
jle 0x401701
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.00401070
push 0
push edi
lea edx, [esp + 0x18]
push esi
push edx
mov ecx, ebp
mov dword [esp + 0x34], 1
call fcn.00401110
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00401080
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00401100
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x401760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40a03f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
mov dword [esp + 8], 0
cmp edi, eax
jle 0x401791
mov edi, eax
lea ecx, [esp + 0xc]
call fcn.00401070
push 0
push 0
lea eax, [esp + 0x14]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x30], 1
call fcn.00401110
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00401080
mov dword [esp + 8], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.00401100
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x404a50
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
lea eax, [esp + 4]
push edi
mov dword [esp + 4], ecx
push eax
xor edi, edi
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 1
jne 0x404b7e
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x104
push eax
call fcn.0040590a
push 0x208
mov ebx, eax
call fcn.0040590a
add esp, 8
mov esi, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.EPSTHK32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x404b60
push str.CopyOEMInfFile
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404ae0
push edi
push esi
push ebx
call eax
mov edi, eax
test edi, edi
jne 0x404b59
push str.CtlGetLddPath
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404b59
push esi
push 0x11
call eax
mov eax, dword [esp + 0x18]
cmp eax, 5
jae 0x404b26
cmp eax, 4
jne 0x404b19
mov eax, dword [esp + 0x1c]
cmp eax, 0xa
jae 0x404b26
test eax, eax
jne 0x404b19
cmp word [esp + 0x20], 0x3b6
ja 0x404b26
mov ecx, dword [esp + 0x10]
push esi
push ebx
call fcn.00404c80
jmp 0x404b3c
push str.Other
push esi
call fcn.00403040
mov ecx, dword [esp + 0x10]
push esi
push ebx
call fcn.00404b90
mov edi, eax
test edi, edi
je 0x404b59
push str.AddSingleInfToDrvIdx
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404b59
push 1
push 1
push esi
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call fcn.004058ff
push ebx
call fcn.004058ff
add esp, 8
mov eax, edi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x98
ret 4
mov eax, edi
pop edi
add esp, 0x98
ret 4

Function at 0x404b90
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x40a260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
lea ecx, [esp + 0x14]
xor edi, edi
call fcn.004017f0
lea ecx, [esp + 8]
mov dword [esp + 0x3c], edi
call fcn.00401070
mov esi, dword [esp + 0x44]
push edi
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call fcn.004018c0
test eax, eax
je 0x404c43
push str.Provider
push 0x40b1d4
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x404c18
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push 1
call fcn.004021b0
test eax, eax
je 0x404c18
lea ecx, [esp + 8]
push str.Strings
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402240
push esi
call fcn.00402ff0
push eax
lea ecx, [esp + 0xc]
call fcn.004014f0
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x48]
push edx
push edi
call fcn.00403040
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 0
call fcn.00401100
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00402620
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x404c80
Capabilities:
Copy file

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
add eax, 0x104
push edi
xor esi, esi
push eax
xor ebx, ebx
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call fcn.0040590a
push 0x18c
mov edi, eax
call fcn.0040590a
add esp, 8
mov ebp, eax
cmp ebx, 0xffffffff
je 0x404ceb
mov ecx, dword [esp + 0x1c]
push esi
push ecx
push str._soem_d.inf
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4000
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_OpenFile]
inc esi
mov ebx, eax
cmp esi, 0x2710
jl 0x404cb4
cmp ebx, 0xffffffff
jne 0x404cfd
mov edx, dword [esp + 0x18]
push 0
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
jmp 0x404d01
mov esi, dword [esp + 0x10]
push edi
call fcn.004058ff
push ebp
call fcn.004058ff
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x407c31
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d830
cmp edx, dword [eax]
je 0x407c53
add eax, 8
inc ecx
cmp eax, 0x40d8c0
jl 0x407c44
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d830]
jne 0x407d81
mov eax, dword [0x40dfbc]
cmp eax, 1
je 0x407d5b
test eax, eax
jne 0x407c84
cmp dword [0x40d554], 1
je 0x407d5b
cmp edx, 0xfc
je 0x407d81
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407cbb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409420
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409510
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407cfe
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409510
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5cc
push edi
call fcn.00409620
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409420
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409430
lea eax, [ebp - 0xa0]
push 0x40b5ac
push eax
call fcn.00409430
push dword [esi + 0x40d834]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409430
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040958b
add esp, 0x2c
pop edi
jmp 0x407d81
lea eax, [ebp + 8]
lea esi, [esi + 0x40d834]
push 0
push eax
push dword [esi]
call fcn.00409510
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4031bc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4031f8
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403218
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405650
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4034ec
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.004053e0
test esi, esi
jne 0x403522
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.004054d0
jmp 0x403540
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033f0
mov edi, eax
test esi, esi
je 0x403540
cmp dword [ebx], 0
je 0x403540
dec esi
jmp 0x403529
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4041d4
Capabilities:
Query or enumerate registry value

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

Function at 0x40518c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x63504c], 0
je 0x4051ed
cmp word [0x635220], 0xd7b2
jne 0x4051b5
cmp dword [0x635228], 0
jbe 0x4051b5
mov eax, 0x63521c
call dword [0x635238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x405214
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5b5030], 0
jne 0x405209
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405364
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 [0x5b5038], 0
je 0x40538a
mov edx, esi
mov eax, ebx
call dword [0x5b5038]
jmp 0x405399
mov eax, 8
call fcn.00402fb4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x63504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40532c
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 0x407058
Capabilities:
Get geographical location
Query or enumerate registry value

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 0x407288
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4070db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407288
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4070db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4072a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x407164
xor eax, eax
push ebp
push 0x40715d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406e94
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 0x407142
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4072c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x407142
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 0x407164
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 0x40727e
cmp byte [ebp - 0xd], 0
jne 0x4071ab
cmp byte [ebp - 0x12], 0
je 0x40727e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4071c4
dec ebx
cmp byte [ebx], 0x2e
je 0x4071d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4071c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40727e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407210
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 0x40727e
cmp byte [ebp - 0xd], 0
je 0x40727e
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 0x40727e
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
Function at 0x40a178
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a1ca
test eax, edx
je 0x40a1cd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40a18d
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a1b3
add ecx, 4
js 0x40a1a3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40a1b0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40a1d9
test edx, edx
jne 0x40a180
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405870
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40aff9
test al, 0x10
je 0x40affd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405870
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b01d
test al, 0x10
jne 0x40b021
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b1c8
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405870
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40b1dc
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.00405870
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40b1fe
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ed54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ed8d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004054d0
jmp 0x40ed96
mov eax, ebx
mov edx, esi
call fcn.00405434
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40eda0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40edc2
movzx eax, byte [esp]
jmp 0x40edc4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40f454
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40f2cc
mov eax, dword [0x634254]
cmp byte [eax], 0
je 0x40f4d0
mov eax, dword [0x633d64]
call fcn.004039c0
call fcn.00403110
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040b750
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40f518
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40f506
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x633ca8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6377f8]
call fcn.00406e3c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40fdf4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40feca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405478
lea eax, [ebp - 4]
call fcn.004058c8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405870
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40feb4
mov eax, ebx
call fcn.00402fb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40fead
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405870
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40fe97
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40fedc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40fe97
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40feb4
mov eax, dword [ebp - 0x10]
call fcn.00402fd0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fed1
lea eax, [ebp - 4]
call fcn.004053e0
ret

Function at 0x424ae8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004247f8
dec esi
jne 0x424b0a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret