joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x44b13b
push 0x497900
call dword [0x4790dc]
mov edi, esi
call fcn.0044ad90
mov edi, eax
test edi, edi
je 0x44b13b
inc dword [edi + 0x14]
push 0x497900
call dword [0x4790d8]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x44b15f
test esi, esi
je 0x44b157
push 0x497900
call dword [0x4790d8]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x44b174
test esi, esi
jmp 0x44b26a
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
mov esi, dword [0x47909c]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x44b1a9
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x44b266
push 0x1c
push 0
call dword [0x479124]
push eax
call dword [0x47911c]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [0x47909c]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [0x47909c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00467840
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.0044add0
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x44b22d
push eax
mov eax, esi
call fcn.0044af50
add esp, 4
push esi
call fcn.0044afe0
add esp, 4
test eax, eax
je 0x44b25f
push esi
call fcn.0044ae80
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
mov ebx, 1
test eax, eax
je 0x44b283
add eax, edi
je 0x44b25f
push 0
push ebx
push edi
call eax
test eax, eax
jne 0x44b280
mov eax, esi
call fcn.0044b3d0
cmp dword [ebp + 0xc], 0
je 0x44b277
push 0x497900
call dword [0x4790d8]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ebx
test eax, eax
je 0x44b2b4
push eax
call fcn.0045e2a6
add esp, 4
mov edi, esi
mov dword [esi + 0x18], eax
call fcn.0044ac90
push 0x497900
call dword [0x4790d8]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], ebx
pop ebx
pop edi
mov dword [esi + 0x18], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4079bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c8f0
cmp edx, dword [eax]
je 0x4079df
add eax, 8
inc ecx
cmp eax, 0x40c980
jl 0x4079d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c8f0]
jne 0x407b0d
mov eax, dword [0xde152c]
cmp eax, 1
je 0x407ae7
test eax, eax
jne 0x407a10
cmp dword [0x40c224], 1
je 0x407ae7
cmp edx, 0xfc
je 0x407b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407a47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404800
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004048f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004048f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b47c
push edi
call fcn.00405260
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404800
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404810
lea eax, [ebp - 0xa0]
push 0x40b45c
push eax
call fcn.00404810
push dword [esi + 0x40c8f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404810
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409b8c
add esp, 0x2c
pop edi
jmp 0x407b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x40c8f4]
push 0
push eax
push dword [esi]
call fcn.004048f0
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 0x407665
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4280a4], 0
jne 0x4076a3
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407679
mov dword [ecx*4 + 0x4280a0], eax
inc ecx
cmp ecx, 0x100
jl 0x407674
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4076d0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4280a0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4076b1
not eax
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4146d9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x41b024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [0x41cf30], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x3c]
push 0x15
mov dword [edi], 0x4172c8
mov dword [edi + 4], 0x4172d4
mov dword [edi + 8], 0x4172e4
mov dword [edi + 0xc], 0x4172f0
mov dword [edi + 0x10], 0x4172fc
mov dword [edi + 0x2c], 0xa
mov byte [edi + 0x30], 1
mov dword [edi + 0x34], ebx
push str.C:Program_FilesWuji
push eax
mov dword [edi + 0x38], eax
mov byte [eax], bl
call fcn.00408c27
mov eax, dword [edi + 0x38]
mov byte [eax + 0x15], bl
lea esi, [edi + 0x8c]
lea eax, [esi + 4]
push 0x2c
mov dword [edi + 0x7c], 0x1010101
mov byte [edi + 0x80], 1
mov dword [edi + 0x84], ebx
mov dword [edi + 0x88], ebx
push str.huvs__.uts.icl522__km.wj3_32513__77_keord
push eax
mov dword [esi], eax
mov byte [eax], bl
call fcn.00408c27
mov ecx, dword [esi]
add esp, 0x18
mov byte [ecx + 0x2c], bl
mov byte [ebp - 4], 2
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
cmp byte [eax], bl
je 0x4010df
jmp 0x4010d0
xor byte [edx], cl
inc ecx
inc edx
cmp ecx, 5
jne 0x4010db
xor ecx, ecx
cmp byte [edx], bl
jne 0x4010d0
call fcn.00402360
push 0xa0
call fcn.004086aa
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x401104
push eax
call fcn.00402990
jmp 0x401106
xor eax, eax
push ebx
lea edx, [ebp - 0x24]
mov dword [edi + 0x34], eax
push edx
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401440
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 4]
push 0
push 0x417378
push eax
mov dword [esi], eax
mov byte [eax], 0
call fcn.00408c27
mov eax, dword [esi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea ecx, [ebp - 0x16c]
push ecx
push 0x20019
push 0
push str.SoftwareWuji
push 0x80000002
mov byte [eax], 0
call ebx
test eax, eax
jne 0x401509
push 0x103
push eax
lea edx, [ebp - 0x10f]
push edx
mov byte [ebp - 0x110], al
call fcn.0040c720
mov edx, dword [ebp - 0x16c]
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
push 0x41738c
push edx
mov dword [ebp - 0x170], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4014fc
lea eax, [ebp - 0x110]
push eax
push 0x417390
mov edi, esi
call fcn.00402790
add esp, 8
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401510
sub eax, edx
test eax, eax
jg 0x401616
lea edx, [ebp - 0x170]
push edx
lea eax, [ebp - 0x16c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareWuji
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x16c]
push ecx
push 0x20006
push 0
push str.SoftwareWuji
push 0x80000002
call ebx
test eax, eax
jne 0x401616
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [ebp - 0x11a]
movzx edx, word [ebp - 0x11e]
lea eax, [ebp - 0x164]
push ecx
mov dword [ebp - 0x168], eax
movzx eax, word [ebp - 0x120]
push edx
push eax
push str.__d_d_d
lea edi, [ebp - 0x168]
mov byte [ebp - 0x164], 0
call fcn.00402790
mov edx, dword [ebp - 0x168]
mov eax, edx
add esp, 0x10
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015c4
mov ecx, dword [ebp - 0x16c]
sub eax, edi
push eax
push edx
push 1
push 0
push 0x41738c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x16c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x168]
call fcn.004022c0
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
cmp eax, ecx
je 0x401616
push eax
call fcn.00408c41
add esp, 4
mov edx, 0x417378
mov ecx, 0x41739c
mov edi, esi
call fcn.00402520
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004084de
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
call fcn.004018d0
mov eax, dword [0x41cf30]
mov ecx, dword [eax + 8]
push ecx
call fcn.004017c0
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x401772
push 0
push eax
call edi
mov edx, dword [0x41cf30]
mov eax, dword [edx + 4]
push eax
call fcn.004017c0
push eax
push 0
push 1
call esi
test eax, eax
je 0x401791
push 0
push eax
call edi
mov ecx, dword [0x41cf30]
mov edx, dword [ecx + 0x10]
push edx
call fcn.004017c0
push eax
push 0
push 1
call esi
test eax, eax
je 0x4017b0
push 0
push eax
call edi
pop edi
pop esi
pop ecx
ret

Function at 0x4017c0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.0040f430
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x110c]
push ecx
push 0x1000
lea edx, [ebp - 0x1108]
push edx
mov dword [ebp - 0x1110], eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x40180d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x110c]
push ebx
push esi
push edi
shr eax, 2
xor edi, edi
test eax, eax
jle 0x401894
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + edi*4 - 0x1108]
push ecx
push 0
push 0x410
call ebx
lea edx, [ebp - 0x1114]
push edx
mov esi, eax
push 0x1000
lea eax, [ebp - 0x2114]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov edx, dword [ebp - 0x2114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov eax, dword [ebp - 0x1110]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.004084f0
add esp, 8
test eax, eax
jne 0x4018a9
mov edx, dword [ebp - 0x110c]
inc edi
shr edx, 2
cmp edi, edx
jl 0x401825
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + edi*4 - 0x1108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004084de
mov esp, ebp
pop ebp
ret 4
Function at 0x4018d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401916
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401926
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x401974
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004084de
mov esp, ebp
pop ebp
ret
Function at 0x401e60
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], edx
call fcn.0040fe86
add esp, 8
lea ecx, [ebp - 0x418]
push ecx
push 0x4152cc
push 1
push 0
push 0x4152dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401fc9
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x41c]
push ecx
push 0x4152ec
push eax
call edx
test eax, eax
js 0x401fbb
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test ebx, ebx
jne 0x401eff
mov edx, dword [0x41c210]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x401f06
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test esi, esi
je 0x401f1b
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
jmp 0x401f28
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test edi, edi
je 0x401f3d
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x401f56
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x401f91
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.0040872a
add esp, 0x10
jmp 0x40201b
push 0x5c
test ebx, ebx
je 0x401f9a
push ebx
jmp 0x401fa1
mov edx, dword [0x41c210]
push edx
call fcn.00408aa0
add esp, 8
test eax, eax
jne 0x401fdc
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret 8
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.0040872a
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402001
sub eax, edx
lea eax, [ebp + eax - 0x108]
mov word [eax - 3], 0x6e6c
mov byte [eax - 1], 0x6b
push 0x104
lea edx, [ebp - 0x414]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x414]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setns al
xor ecx, ebp
pop esi
call fcn.004084de
mov esp, ebp
pop ebp
ret 8
Function at 0x402a30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 4]
push 0
push 0x417378
push eax
mov dword [esi], eax
mov byte [eax], 0
call fcn.00408c27
mov eax, dword [esi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea ecx, [ebp - 0x16c]
push ecx
push 0x20019
push 0
push str.SoftwareWuji
push 0x80000002
mov byte [eax], 0
call ebx
test eax, eax
jne 0x402af9
push 0x103
push eax
lea edx, [ebp - 0x10f]
push edx
mov byte [ebp - 0x110], al
call fcn.0040c720
mov edx, dword [ebp - 0x16c]
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
push 0x41738c
push edx
mov dword [ebp - 0x170], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402aec
lea eax, [ebp - 0x110]
push eax
push 0x417390
mov edi, esi
call fcn.00402790
add esp, 8
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b00
sub eax, edx
test eax, eax
jg 0x402c06
lea edx, [ebp - 0x170]
push edx
lea eax, [ebp - 0x16c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareWuji
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x16c]
push ecx
push 0x20006
push 0
push str.SoftwareWuji
push 0x80000002
call ebx
test eax, eax
jne 0x402c06
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [ebp - 0x11a]
movzx edx, word [ebp - 0x11e]
lea eax, [ebp - 0x164]
push ecx
mov dword [ebp - 0x168], eax
movzx eax, word [ebp - 0x120]
push edx
push eax
push str.__d_d_d
lea edi, [ebp - 0x168]
mov byte [ebp - 0x164], 0
call fcn.00402790
mov edx, dword [ebp - 0x168]
mov eax, edx
add esp, 0x10
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402bb4
mov ecx, dword [ebp - 0x16c]
sub eax, edi
push eax
push edx
push 1
push 0
push 0x41738c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x16c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x168]
call fcn.004022c0
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
cmp eax, ecx
je 0x402c06
push eax
call fcn.00408c41
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004084de
mov esp, ebp
pop ebp
ret
Function at 0x402c20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c33
sub eax, edi
jne 0x402c49
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402c62
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov eax, dword [esi]
sub esp, 0x44
mov esi, esp
lea ecx, [esi + 4]
mov dword [ebp - 4], esp
mov dword [esi], ecx
mov byte [ecx], 0
mov ebx, eax
test eax, eax
jne 0x402c7f
mov ebx, 0x417378
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c84
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jl 0x402caa
lea ecx, [edi + 1]
push ecx
push 0
mov dword [esi], 0
call fcn.00408f11
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
push edi
push ebx
push edx
call fcn.00408c27
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
add esp, 0xc
push ecx
mov byte [edi + eax], 0
call fcn.00402ce0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402ce0
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414838
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x144], eax
push 0x41742c
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x402d40
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x402e30
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x402d5b
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x402e28
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x402d76
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x402e30
push edi
call fcn.004084d3
add esp, 4
mov dword [0x41cf24], eax
test eax, eax
je 0x402da0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x41cf24]
push eax
push edx
call fcn.0040e3b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.0040c720
add esp, 0xc
push edi
call fcn.004083e0
mov edi, eax
add esp, 4
test edi, edi
je 0x402e23
push 0xffffffffffffffff
lea edx, [ebp - 0x140]
call fcn.00408450
add esp, 4
test eax, eax
jne 0x402e23
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402dfb
mov edx, dword [ebp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x44
lea eax, [ebp + 0xc]
mov esi, esp
mov dword [ebp - 0x148], esp
push eax
call fcn.00402090
mov ecx, dword [ebp - 0x140]
push ecx
mov ecx, dword [ebp - 0x144]
mov edx, edi
call fcn.00402e70
call fcn.00408490
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x402e3b
push eax
call fcn.00408c41
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret 0x48