joyce8/EMBER2024-capa huggingface dataset:
Function at 0x590474b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x590474c9
mov eax, 0x80004003
jmp 0x59047550
push 5
push 0x6b
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x590474f5
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x590474fc
mov eax, 0x8000ffff
jmp 0x59047550
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.59018864
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8

Function at 0x590476c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x590476d6
mov eax, 0x80004003
jmp 0x5904775d
push 5
push 0x6e
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x59047702
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x59047709
mov eax, 0x8000ffff
jmp 0x5904775d
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.59018864
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8
Function at 0x590478d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x590478e3
mov eax, 0x80004003
jmp 0x5904796a
push 5
push 0x6f
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x5904790f
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x59047916
mov eax, 0x8000ffff
jmp 0x5904796a
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.59018864
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8

Function at 0x59047add
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x59047af0
mov eax, 0x80004003
jmp 0x59047b77
push 5
push 0x69
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x59047b1c
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x59047b23
mov eax, 0x8000ffff
jmp 0x59047b77
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.59018864
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8
Function at 0x59047cea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x59047cfd
mov eax, 0x80004003
jmp 0x59047d84
push 5
push 0x70
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x59047d29
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x59047d30
mov eax, 0x8000ffff
jmp 0x59047d84
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.59018864
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8

Function at 0x59047ef7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x59047f0a
mov eax, 0x80004003
jmp 0x59047f91
push 5
push 0x71
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x59047f36
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x59047f3d
mov eax, 0x8000ffff
jmp 0x59047f91
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.59018864
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8
Function at 0x59048104
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x59048117
mov eax, 0x80004003
jmp 0x5904819e
push 5
push 0x72
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x59048143
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x5904814a
mov eax, 0x8000ffff
jmp 0x5904819e
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.59018864
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8

Function at 0x59048311
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x59048324
mov eax, 0x80004003
jmp 0x590483ab
push 5
push 0x6a
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x59048350
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x59048357
mov eax, 0x8000ffff
jmp 0x590483ab
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.59018864
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8

Function at 0x5905b0de
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
push ebx
push dword [esp + 0x10]
call dword [sym.imp.vsansi.dll_GetWindowTextW]
test eax, eax
jle 0x5905b141
mov ax, word [ebx]
test ax, ax
je 0x5905b137
cmp ax, 0x22
jne 0x5905b137
push esi
push edi
lea esi, [ebx + 2]
push esi
call dword [sym.imp.MSVCR70.dll_wcslen]
cmp word [esi + eax*2 - 2], 0x22
pop ecx
jne 0x5905b120
and word [esi + eax*2 - 2], 0
dec eax
lea edi, [eax + eax]
push edi
push esi
push ebx
call dword [sym.imp.MSVCR70.dll_memmove]
add esp, 0xc
and word [edi + esi - 2], 0
pop edi
pop esi
mov ecx, dword [esp + 0x14]
push ebx
call fcn.5901940d
pop ebx
ret 0x10
Function at 0x5905b145
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa4
push esi
push edi
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
push dword [ebp + 0x78]
mov dword [ebp + 0x68], eax
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.vsansi.dll_SendMessageW]
push 0
push 0
mov edi, eax
push 0x147
push edi
call esi
cmp eax, 0xffffffff
je 0x5905b1ce
lea ecx, [ebp - 0x38]
push ecx
push eax
push 0x148
push edi
call esi
cmp eax, 0xffffffff
je 0x5905b1f2
cmp word [ebp - 0x38], 0x28
je 0x5905b1f2
cmp dword [ebp + 0x68], 0
lea eax, [ebp - 0x38]
push eax
jne 0x5905b1ea
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.590aa0d0
mov eax, esp
push 0
push esi
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.59031a43
jmp 0x5905b1e9
push edi
call dword [sym.imp.vsansi.dll_GetWindowTextLengthW]
test eax, eax
jle 0x5905b1f2
push 0x50
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.vsansi.dll_GetWindowTextW]
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 0x7c]
call fcn.5901940d
lea esp, [ebp - 0x40]
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc

Function at 0x5905b4c8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xca
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x402
push dword [esi + 0x2c]
mov edi, eax
push edi
call dword [sym.imp.vsansi.dll_GetWindowTextW]
push 0x5900a014
push dword [esi + 0x2c]
mov ebp, eax
call dword [sym.imp.MSVCR70.dll_wcscspn]
push dword [esi + 0x2c]
mov ebx, eax
call dword [sym.imp.MSVCR70.dll_wcslen]
add esp, 0xc
cmp ebx, eax
jne 0x5905b52f
test ebp, ebp
jle 0x5905b51e
push dword [esi + 0x2c]
lea ecx, [esi + 0x28]
call fcn.5901940d
movzx eax, word [esp + 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x5905b54a
push 0x406
push 0x4d4
push 0x30
push dword [esi + 4]
call fcn.59018864
push edi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x4032c0
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.00404c1c
test esi, esi
jne 0x4032f6
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.00404d0c
jmp 0x403314
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031c4
mov edi, eax
test esi, esi
je 0x403314
cmp dword [ebx], 0
je 0x403314
dec esi
jmp 0x4032fd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403ad4
Capabilities:
Query or enumerate registry value

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

Function at 0x4049c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50204c], 0
je 0x404a29
cmp word [0x502220], 0xd7b2
jne 0x4049f1
cmp dword [0x502228], 0
jbe 0x4049f1
mov eax, 0x50221c
call dword [0x502238]
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 0x404a50
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fd030], 0
jne 0x404a45
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ba0
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 [0x4fd034], 0
je 0x404bc6
mov edx, esi
mov eax, ebx
call dword [0x4fd034]
jmp 0x404bd5
mov eax, 8
call fcn.00402ed4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x50204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b68
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 0x406440
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 0x406670
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4064c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406670
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4064c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40668c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40654c
xor eax, eax
push ebp
push 0x406545
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040627c
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 0x40652a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4066ac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40652a
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 0x40654c
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 0x406666
cmp byte [ebp - 0xd], 0
jne 0x406593
cmp byte [ebp - 0x12], 0
je 0x406666
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4065ac
dec ebx
cmp byte [ebx], 0x2e
je 0x4065bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4065ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406666
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4065f8
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 0x406666
cmp byte [ebp - 0xd], 0
je 0x406666
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 0x406666
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 0x408f9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408fee
test eax, edx
je 0x408ff1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408fb1
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 0x408fd7
add ecx, 4
js 0x408fc7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408fd4
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 0x408ffd
test edx, edx
jne 0x408fa4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004050ac
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409c21
test al, 0x10
je 0x409c25
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004050ac
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409c45
test al, 0x10
jne 0x409c49
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409d48
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.004050ac
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409d6a
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d3ac
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d3e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d0c
jmp 0x40d3ee
mov eax, ebx
mov edx, esi
call fcn.00404c70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d3f8
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 0x40d41a
movzx eax, byte [esp]
jmp 0x40d41c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40daac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d924
mov eax, dword [0x501788]
cmp byte [eax], 0
je 0x40db28
mov eax, dword [0x501398]
call fcn.0040344c
call fcn.00403030
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.0040a120
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 0x40db70
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40db5e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x501308]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5047f8]
call fcn.00406224
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 0x40e440
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 0x40e516
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404cb4
lea eax, [ebp - 4]
call fcn.00405104
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004050ac
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e500
mov eax, ebx
call fcn.00402ed4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e4f9
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.004050ac
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e4e3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e528
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e4e3
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 0x40e500
mov eax, dword [ebp - 0x10]
call fcn.00402ef0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e51d
lea eax, [ebp - 4]
call fcn.00404c1c
ret

Function at 0x424968
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.00424678
dec esi
jne 0x42498a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret