joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402dd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x27c], 0
je 0x402ed4
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x280], 0
je 0x402ed4
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 1
je 0x402e23
mov ecx, dword [ebp - 0x18]
add ecx, 0xe8
call fcn.00401280
mov byte [0x449211], 1
jmp 0x402e38
mov ecx, dword [ebp - 0x18]
add ecx, 0xe8
call fcn.004012c0
mov byte [0x449211], 0
movzx eax, byte [0x43e8f8]
test eax, eax
je 0x402e56
mov cl, byte [0x449211]
mov byte [0x449210], cl
mov byte [0x43e8f8], 0
movzx edx, byte [0x449210]
movzx eax, byte [0x449211]
cmp edx, eax
je 0x402ed4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 4], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
movzx edx, byte [0x449211]
push edx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
call dword [sym.imp.skosd.dll_OSD_ShowNumLk]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dl, byte [0x449211]
mov byte [0x449210], dl
push 0
push 0x7d0
push 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x524], eax
mov esp, ebp
pop ebp
ret

Function at 0x402ee0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x27c], 0
je 0x402fa6
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x280], 0
je 0x402fa6
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 1
je 0x402f22
mov byte [0x449213], 1
jmp 0x402f29
mov byte [0x449213], 0
movzx eax, byte [0x43e8f9]
test eax, eax
je 0x402f47
mov cl, byte [0x449213]
mov byte [0x449212], cl
mov byte [0x43e8f9], 0
movzx edx, byte [0x449212]
movzx eax, byte [0x449213]
cmp edx, eax
je 0x402fa6
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 4], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
movzx edx, byte [0x449213]
push edx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
call dword [sym.imp.skosd.dll_OSD_ShowCapsLk]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dl, byte [0x449213]
mov byte [0x449212], dl
mov esp, ebp
pop ebp
ret
Function at 0x4057c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x43f6fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], 0
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d0a0
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4058f9
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0xa8], edx
cmp dword [ebp - 0xa8], 2
je 0x40582c
jmp 0x4058f9
cmp dword [ebp - 0x9c], 4
ja 0x405844
mov dword [ebp - 0xa4], 1
jmp 0x4058f9
cmp dword [ebp - 0x9c], 5
jne 0x405865
cmp dword [ebp - 0x98], 0
jne 0x405865
mov dword [ebp - 0xa4], 2
jmp 0x4058f9
cmp dword [ebp - 0x9c], 5
jne 0x405883
cmp dword [ebp - 0x98], 1
jne 0x405883
mov dword [ebp - 0xa4], 3
jmp 0x4058f9
cmp dword [ebp - 0x9c], 5
jne 0x4058a1
cmp dword [ebp - 0x98], 2
jne 0x4058a1
mov dword [ebp - 0xa4], 4
jmp 0x4058f9
cmp dword [ebp - 0x9c], 6
jne 0x4058bf
cmp dword [ebp - 0x98], 0
jne 0x4058bf
mov dword [ebp - 0xa4], 5
jmp 0x4058f9
cmp dword [ebp - 0x9c], 6
jne 0x4058dd
cmp dword [ebp - 0x98], 1
jne 0x4058dd
mov dword [ebp - 0xa4], 6
jmp 0x4058f9
cmp dword [ebp - 0x9c], 6
jb 0x4058f9
cmp dword [ebp - 0x98], 0
jb 0x4058f9
mov dword [ebp - 0xa4], 7
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cf0c
mov esp, ebp
pop ebp
ret
Function at 0x406510
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], 0
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.0041d0a0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.0041d0a0
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40657e
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x5c]
mov esp, ebp
pop ebp
ret 8

Function at 0x406590
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x43f6fc]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4066c9
mov dword [ebp - 8], 0
jmp 0x4065ea
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov cl, byte [0x43284a]
mov byte [ebp - 0x120], cl
push 0x103
push 0
lea edx, [ebp - 0x11f]
push edx
call fcn.0041d0a0
add esp, 0xc
mov al, byte [0x43284a]
mov byte [ebp - 0x228], al
push 0x103
push 0
lea ecx, [ebp - 0x227]
push ecx
call fcn.0041d0a0
add esp, 0xc
mov dword [ebp - 0x22c], 0x104
mov dword [ebp - 0x14], 0x104
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4066b8
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4066b6
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 0xc], 1
jmp 0x4066bf
jmp 0x4066ba
jmp 0x4066bf
jmp 0x4065e1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041cf0c
mov esp, ebp
pop ebp
ret 0x14
Function at 0x409f94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x409fb8
cmp dword [edi + 0x54], 0
jne 0x409fb8
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004150c3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00409f55
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40fb79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40fbc0
call fcn.004150c3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40fbc0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40fbdc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f6f3
mov esi, eax
test edi, edi
je 0x40fbda
test ebx, ebx
je 0x40fbda
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41cf0c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f6fc]
jne 0x41cf16
repz ret
jmp fcn.004224bc
Function at 0x429f04
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00421dfa
and dword [ebp - 4], 0
cmp dword [0x44bb84], 0
mov ebx, eax
jne 0x429fb5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42a066
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x437680
push edi
call esi
test eax, eax
je 0x42a066
push eax
call fcn.00421d88
mov dword [esp], 0x437670
push edi
mov dword [0x44bb84], eax
call esi
push eax
call fcn.00421d88
mov dword [esp], 0x43765c
push edi
mov dword [0x44bb88], eax
call esi
push eax
call fcn.00421d88
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44bb8c], eax
call esi
push eax
call fcn.00421d88
pop ecx
mov dword [0x44bb94], eax
test eax, eax
je 0x429fb5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00421d88
pop ecx
mov dword [0x44bb90], eax
mov eax, dword [0x44bb90]
cmp eax, ebx
je 0x42a00d
cmp dword [0x44bb94], ebx
je 0x42a00d
push eax
call fcn.00421e03
push dword [0x44bb94]
mov esi, eax
call fcn.00421e03
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42a00d
test edi, edi
je 0x42a00d
call esi
test eax, eax
je 0x42a004
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a004
test byte [ebp - 0xc], 1
jne 0x42a00d
or dword [ebp + 0x10], 0x200000
jmp 0x42a046
mov eax, dword [0x44bb88]
cmp eax, ebx
je 0x42a046
push eax
call fcn.00421e03
pop ecx
test eax, eax
je 0x42a046
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42a046
mov eax, dword [0x44bb8c]
cmp eax, ebx
je 0x42a046
push eax
call fcn.00421e03
pop ecx
test eax, eax
je 0x42a046
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44bb84]
call fcn.00421e03
pop ecx
test eax, eax
je 0x42a066
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a068
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40168d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x467fd0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00432ab0
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x4016e1
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x4016f1
mov eax, dword [ebp - 0x70]
dec eax
dec eax
jne 0x4016f1
cmp dword [ebp - 0x7c], 6
jb 0x4016f1
inc eax
jmp 0x4016f3
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.00432994
add ebp, 0xa0
leave
ret

Function at 0x401ac3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.00433080
mov eax, dword [0x467fd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x5c], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x401b6d
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.00432ab0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1004]
push eax
call fcn.00432c14
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x3004], ax
lea eax, [ebp - 0x3002]
push eax
call fcn.00432ab0
lea eax, [ebp - 0x1004]
push eax
push edi
lea eax, [ebp - 0x3004]
push 0x44c850
push eax
call fcn.0040174f
add esp, 0x34
cmp byte [esi + 0x5d], 0
lea eax, [ebp - 0x3004]
push eax
je 0x401b67
mov ecx, esi
call fcn.0040190c
jmp 0x401b6d
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00432994
leave
ret

Function at 0x401ec9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401f51
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401f35
push str.UACCheck___RegQueryValueEx__EnableLUA___Fail___
push str._SOM_
push 0x469370
call fcn.00401ac3
add esp, 0xc
cmp dword [ebp - 4], esi
je 0x401f51
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp dword [ebp - 4], esi
je 0x401f51
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x402a08
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
mov eax, dword [0x467fd0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xa0c], ax
lea eax, [ebp - 0xa0a]
push eax
call fcn.00432ab0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00432ab0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004028f2
add esp, 0x20
cmp word [ebp - 0x20c], 0
je 0x402ae5
push esi
xor esi, esi
push esi
push str.DXTP
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa0c]
push str._s_s_03d.tsp
push eax
call fcn.0043370a
lea eax, [ebp - 0xa0c]
push 0x44ca70
push eax
call fcn.004336f3
add esp, 0x1c
test eax, eax
je 0x402ab5
push eax
call fcn.004335b1
inc esi
cmp esi, 0x64
pop ecx
jl 0x402a72
lea eax, [ebp - 0xa0c]
push 0x44ca68
push eax
call fcn.004336f3
pop ecx
pop ecx
pop esi
test eax, eax
je 0x402ae5
push eax
call fcn.004335b1
pop ecx
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x402ae8
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432994
leave
ret
Function at 0x4030dd
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.00433080
mov eax, dword [0x467fd0]
xor eax, ebp
mov dword [ebp + 0xf94], eax
push ebx
xor ebx, ebx
push 0xfff
lea eax, [ebp - 0x6b]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x6c], bl
call fcn.00432ab0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 8
mov byte [ebp - 0x74], bl
mov byte [ebp - 0x73], bl
mov byte [ebp - 0x72], bl
mov byte [ebp - 0x71], bl
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x6f], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402c8d
lea eax, [ebp - 0x80]
push eax
push 0x1000
lea eax, [ebp - 0x6c]
push eax
push 2
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x402c0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_GetTokenInformation_Fail___d_
jmp 0x402c99
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x402c3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_AllocateAndInitializeSid_Fail___d_
jmp 0x402c99
push esi
xor esi, esi
cmp dword [ebp - 0x6c], ebx
jbe 0x402c67
push edi
lea edi, [ebp - 0x68]
push dword [edi]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x402c63
inc esi
add edi, 8
cmp esi, dword [ebp - 0x6c]
jb 0x402c49
jmp 0x402c66
xor ebx, ebx
inc ebx
pop edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_EqualSid___d_
push 0x44c95c
push 0x469a10
call fcn.00401ac3
add esp, 0x10
mov eax, ebx
pop esi
jmp 0x402cad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_OpenProcessToken_Fail___d_
push 0x44c95c
push 0x469a10
call fcn.00401ac3
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp + 0xf94]
xor ecx, ebp
pop ebx
call fcn.00432994
add ebp, 0xf98
leave
ret
push esi
mov esi, ecx
call fcn.00402573
mov ecx, esi
test eax, eax
je 0x4030f1
pop esi
jmp 0x402b79
call fcn.00402a08
neg eax
sbb eax, eax
inc eax
pop esi
ret
Function at 0x403970
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.00433080
mov eax, dword [0x467fd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x5c], bl
jne 0x403a11
push 0x7ff
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call fcn.00432ab0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x804]
push eax
call fcn.00433d6e
push 0xfff
lea eax, [ebp - 0x1803]
push ebx
push eax
mov byte [ebp - 0x1804], bl
call fcn.00432ab0
lea eax, [ebp - 0x804]
push eax
push edi
lea eax, [ebp - 0x1804]
push str.__s___s
push eax
call fcn.00433c73
add esp, 0x34
lea eax, [ebp - 0x1804]
push eax
cmp byte [esi + 0x5d], bl
je 0x403a0b
mov ecx, esi
call fcn.00403584
jmp 0x403a11
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432994
leave
ret

Function at 0x4041e6
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
jle 0x404227
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
sub edi, esi
mov al, byte [esi]
xor al, 0x80
mov byte [edi + esi], al
movsx ecx, byte [esi]
push ecx
movsx eax, al
push eax
push str.CExtractManager::XorKeyValue__x___x_
push 0x44c95c
push 0x46afb0
call fcn.00401ac3
add esp, 0x14
inc esi
dec ebx
jne 0x4041fb
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x404329
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x467fd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 7
mov esi, ecx
pop ecx
mov byte [ebp - 0x3c], 0
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push 7
mov byte [ebp - 0x5c], 0
pop ecx
lea edi, [ebp - 0x5b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ebx, dword [ebp + 8]
mov byte [ebp - 0xc], 0
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x1c], 0
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x44ca70
push ebx
stosb byte es:[edi], al
call fcn.004336f3
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4043b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CExtractManager::InitSomInfo:_fopen_error__s___d_
push 0x44c95c
push 0x46afb0
call fcn.00401ac3
add esp, 0x14
xor eax, eax
jmp 0x4044db
push 0
push 0x3e8
push edi
call fcn.004356f9
push edi
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x3c]
push 0x11
push eax
call fcn.00435a1e
push edi
push ebx
lea eax, [ebp - 0x5c]
push 7
push eax
call fcn.00435a1e
push edi
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00435a1e
push edi
push ebx
lea eax, [ebp - 0x1c]
push 0x10
push eax
call fcn.00435a1e
add esp, 0x4c
push edi
call fcn.004335b1
push 0x11
lea eax, [ebp - 0x3c]
push str.SOMDOCUMENTNORMAL
xor edi, edi
push eax
mov dword [esi + 0x1450], edi
call fcn.00433fef
add esp, 0x10
test eax, eax
jne 0x40442b
mov dword [esi + 0x1450], edi
jmp 0x404484
push 0x11
lea eax, [ebp - 0x3c]
push str.SOMDOCUMENTOLESOM
push eax
call fcn.00433fef
add esp, 0xc
test eax, eax
jne 0x40444a
mov dword [esi + 0x1450], ebx
jmp 0x404484
push 0x11
lea eax, [ebp - 0x3c]
push str.SOMDOCUMENTSIMPLE
push eax
call fcn.00433fef
add esp, 0xc
test eax, eax
jne 0x40446d
mov dword [esi + 0x1450], 2
jmp 0x404484
push str.CExtractManager::InitSomInfo:_somType_Check_Error__
push 0x44c95c
push 0x46afb0
call fcn.00401ac3
add esp, 0xc
cmp byte [ebp - 0xc], 0x52
mov dword [esi + 0x1454], edi
jne 0x404498
mov dword [esi + 0x1454], edi
jmp 0x4044bd
cmp byte [ebp - 0xc], 0x41
jne 0x4044a6
mov dword [esi + 0x1454], ebx
jmp 0x4044bd
push str.CExtractManager::InitSomInfo:_somEncType_Check_Error__
push 0x44c95c
push 0x46afb0
call fcn.00401ac3
add esp, 0xc
cmp dword [esi + 0x1454], ebx
jne 0x4044d9
push 0x10
lea eax, [esi + 0x145c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004041e6
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432994
leave
ret 4
Function at 0x404eff
Capabilities:
Get common file path

Disassembly:
push 0x938
mov eax, 0x448c6f
call fcn.00432a0c
mov ebx, dword [ebp + 8]
mov esi, 0x104
push esi
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00432ab0
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0040383b
add esp, 0x14
lea eax, [ebp - 0x32c]
push eax
mov dword [ebp - 0x32c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405033
cmp dword [ebp - 0x31c], 2
lea eax, [ebp - 0x218]
jne 0x404fa6
push esi
push edi
push eax
call fcn.00432ab0
add esp, 0xc
push 1
push 0x1c
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push str.SOM_
push eax
call fcn.004337e1
lea eax, [ebp - 0x218]
push eax
call fcn.00435c1f
add esp, 0xc
jmp 0x405033
push ecx
mov ecx, esp
mov dword [ebp - 0x944], esp
push eax
call fcn.004032fe
lea ecx, [ebp - 0x93c]
call fcn.0040eb50
push esi
lea eax, [ebp - 0x218]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00432ab0
add esp, 0xc
lea eax, [ebp - 0x940]
push eax
lea ecx, [ebp - 0x93c]
call fcn.0040ed80
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call fcn.0043380f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x940]
add ecx, 0xfffffff0
call fcn.004026b1
lea eax, [ebp - 0x218]
push 0x44e1a0
push eax
call fcn.004337e1
lea eax, [ebp - 0x218]
push eax
call fcn.00435c1f
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x93c]
call fcn.0040eb00
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.0043380f
pop ecx
pop ecx
call fcn.00432a8f
ret 4