joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405200
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x49df55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x4be930]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x244]
mov edi, 1
cmp ebp, ebx
mov dword [esp + 0x238], edi
jne 0x405261
mov esi, dword [esp + 0x240]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00484a5a
mov dword [esp + 0x14], edi
jmp 0x4053a0
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebx
push edx
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jbe 0x40535f
push edi
call fcn.00484a20
add esp, 4
mov esi, eax
push esi
push edi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40535f
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x4bd710
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405323
mov edx, dword [esp + 0x1c]
cmp edx, ebx
jne 0x4052d2
push esi
call fcn.00484a49
add esp, 4
lea eax, [esp + 0x10]
push eax
jmp 0x40538a
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ecx, ecx
xor eax, eax
mov cx, word [edx + 2]
mov ax, word [edx]
push ecx
push eax
lea ecx, [esp + 0x30]
push str.StringFileInfo_04x_04xFileVersion
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x405333
push esi
call fcn.00484a49
add esp, 4
lea edx, [esp + 0x10]
push edx
jmp 0x40538a
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x405356
push eax
call fcn.0041e943
add esp, 4
test eax, eax
jbe 0x405356
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.00484e84
push esi
call fcn.00484a49
add esp, 4
push 0x4bd58c
push 0x4bd39c
lea ecx, [esp + 0x18]
call fcn.0048125c
push 0x4c526c
push 0x4bd580
lea ecx, [esp + 0x18]
call fcn.0048125c
lea ecx, [esp + 0x10]
push ecx
mov esi, dword [esp + 0x244]
mov ecx, esi
call fcn.00484a5a
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], bl
call fcn.00484ced
mov ecx, dword [esp + 0x230]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret
Function at 0x407b70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 4
not eax
jb 0x407bea
push edi
mov edi, esi
shr edi, 2
mov ebx, dword [edx]
add edx, 4
xor eax, ebx
sub esi, 4
mov ecx, eax
mov ebx, eax
and ecx, 0xff
shr ebx, 8
mov eax, dword [ecx*4 + 0x4a5eb8]
xor eax, ebx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x4a5eb8]
xor ecx, eax
mov eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x4a5eb8]
xor eax, ecx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x4a5eb8]
xor eax, ecx
dec edi
jne 0x407b8b
pop edi
mov ecx, esi
dec esi
test ecx, ecx
je 0x407c10
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4a5eb8]
xor eax, ecx
inc edx
dec esi
jne 0x407bf2
pop esi
pop ebx
not eax
ret

Function at 0x407c50
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x4c5590]
test eax, eax
jne 0x407cce
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x4c5330
mov dword [0x4c5590], 1
mov dword [0x4c5330], 0x114
call esi
mov edx, dword [0x4c5340]
xor eax, eax
cmp edx, 2
push 0x4c5470
sete al
mov dword [0x4bda3c], eax
mov dword [0x4c5470], 0x11c
call esi
push 0x4bdc6c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop esi
mov dword [0x4c558c], eax
test eax, eax
push 0x4c5448
je 0x407cc8
call eax
ret
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
ret
Function at 0x40a960
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x40aae5
push esi
call fcn.0041e943
add esp, 4
test eax, eax
je 0x40aae5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40aae5
test bl, 1
je 0x40a9ad
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x40aad4
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
call fcn.0041e9f7
lea ecx, [esp + 0x18]
push 0x4bdf2c
push ecx
call fcn.0041e9cd
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x22c]
add esp, 0x10
mov dword [esp + 0x218], ebp
lea edx, [esp + 0x218]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40aac2
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x244]
push 0x4bd584
push ecx
call ebp
test eax, eax
je 0x40aaa4
lea edx, [esp + 0x244]
push 0x4bd58c
push edx
call ebp
test eax, eax
je 0x40aaa4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x468]
push esi
push eax
call fcn.0041e9f7
lea ecx, [esp + 0x18]
push 0x4bd364
push ecx
call fcn.0041e9cd
lea edx, [esp + 0x254]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0041e9cd
lea ecx, [esp + 0x480]
push ecx
call fcn.0040a960
add esp, 0x1c
lea edx, [esp + 0x218]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40aa23
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret
Function at 0x40e230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49e848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call fcn.00416cdd
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00416da2
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.00416d1c
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x40edb0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x49ea30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x40eecf
push esi
call fcn.0041e943
add esp, 4
test eax, eax
je 0x40eecf
push esi
lea ecx, [esp + 0x24]
call fcn.00484d61
cmp word [esi], 0x5c
mov dword [esp + 0x18], ebx
jne 0x40ee1f
cmp word [esi + 2], 0x5c
jne 0x40ee1f
push 3
push 0x5c
lea ecx, [esp + 0x28]
call fcn.00485237
inc eax
lea ecx, [esp + 0x20]
push eax
push 0x5c
call fcn.00485237
jmp 0x40ee2a
push 0x5c
lea ecx, [esp + 0x24]
call fcn.00485229
mov esi, eax
cmp esi, 0xffffffff
je 0x40ee89
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.0048153e
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x18], 1
push ecx
call fcn.0040e350
add esp, 4
test eax, eax
jne 0x40ee68
mov edx, dword [esp + 0xc]
push ebx
push edx
call edi
test eax, eax
je 0x40eeb1
inc esi
lea ecx, [esp + 0x20]
push esi
push 0x5c
call fcn.00485237
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x18], bl
call fcn.00484ced
cmp esi, 0xffffffff
jne 0x40ee37
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00484ced
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], bl
call fcn.00484ced
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00484ced
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40f0a0
Capabilities:
Copy file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40f129
push edi
call fcn.0041e943
add esp, 4
test eax, eax
je 0x40f129
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40f129
push esi
call fcn.0041e943
add esp, 4
test eax, eax
je 0x40f129
push edi
call fcn.0040e230
add esp, 4
test eax, eax
je 0x40f129
push esi
push edi
call fcn.0041eadb
add esp, 8
test eax, eax
je 0x40f129
push esi
call fcn.0040e410
add esp, 4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40f121
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40f129
push 0
push 0
push 0x240
push esi
push 0
push edi
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileW]
test eax, eax
je 0x40f129
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x410d10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49eca0
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor eax, eax
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, ecx
push edi
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x410d90
push 0x3d
push ebp
call fcn.0041ef50
add esp, 8
test eax, eax
jne 0x410d90
push 0x3b
push ebp
call fcn.0041ef50
add esp, 8
test eax, eax
jne 0x410d90
mov eax, dword [0x4ac1f0]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0
push ecx
push ebp
mov ecx, esi
call fcn.00411ae0
test eax, eax
je 0x410da6
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.004330e0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea edx, [esp + 0x20]
push edx
call fcn.00407200
add esp, 0xc
mov edi, eax
add esi, 4
push ebp
lea eax, [esp + 0x18]
push esi
push eax
mov byte [esp + 0x30], 1
call fcn.00433810
push 0x3d
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x30], 2
call fcn.00434820
push edi
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0x30], 3
call fcn.00433650
push 0x3b
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x2c], 4
push eax
call fcn.00434820
push eax
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.00433280
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call fcn.004330e0
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call fcn.004330e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.004330e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.004330e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.004330e0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.004330e0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x411580
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49edd8
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4115fd
push 0x3d
push esi
call fcn.0041ef50
add esp, 8
test eax, eax
jne 0x4115fd
push 0x3b
push esi
call fcn.0041ef50
add esp, 8
test eax, eax
jne 0x4115fd
mov eax, dword [0x4ac1f0]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
push ecx
push esi
mov ecx, ebx
call fcn.00411ae0
test eax, eax
jne 0x411613
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004330e0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
inc esi
push esi
call fcn.00484a20
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
call fcn.004073d0
mov ecx, dword [esp + 0x30]
add esp, 0x10
push ebx
call fcn.004333a0
push ebx
call fcn.00484a49
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004330e0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x411690
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49edf8
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41170d
push 0x3d
push esi
call fcn.0041ef50
add esp, 8
test eax, eax
jne 0x41170d
push 0x3b
push esi
call fcn.0041ef50
add esp, 8
test eax, eax
jne 0x41170d
mov eax, dword [0x4ac1f0]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
push ecx
push esi
mov ecx, ebx
call fcn.00411ae0
test eax, eax
jne 0x411723
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004330e0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
cdq
sub eax, edx
sar eax, 1
inc eax
lea ebx, [eax + eax]
push ebx
call fcn.00484a20
mov ecx, ebx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
call fcn.004073d0
mov ecx, dword [esp + 0x30]
add esp, 0x10
push esi
call fcn.00438b40
push esi
call fcn.00484a49
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004330e0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x411be0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x411c44
mov esi, dword [esp + 0x10]
test esi, esi
je 0x411c44
mov edx, dword [esp + 0x14]
test edx, edx
je 0x411c44
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
je 0x411c06
mov dword [ecx], esi
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jb 0x411c46
push ebp
mov ebp, ecx
push edi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop ebp
test esi, esi
jbe 0x411c3a
mov ecx, ebx
mov eax, edx
sub ecx, edx
mov dl, byte [ecx + eax]
xor dl, 0x54
mov byte [eax], dl
inc eax
dec esi
jne 0x411c2e
pop esi
mov eax, 1
pop ebx
ret 0x14
xor eax, eax
pop esi
pop ebx
ret 0x14

Function at 0x411c50
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x411cb4
mov esi, dword [esp + 0x10]
test esi, esi
je 0x411cb4
mov edx, dword [esp + 0x14]
test edx, edx
je 0x411cb4
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
je 0x411c76
mov dword [ecx], esi
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jb 0x411cb6
push ebp
mov ebp, ecx
push edi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop ebp
test esi, esi
jbe 0x411caa
mov ecx, ebx
mov eax, edx
sub ecx, edx
mov dl, byte [ecx + eax]
xor dl, 0x54
mov byte [eax], dl
inc eax
dec esi
jne 0x411c9e
pop esi
mov eax, 1
pop ebx
ret 0x14
xor eax, eax
pop esi
pop ebx
ret 0x14

Function at 0x436d50
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x436da9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x436da9
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x436db0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x436d8d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x436dab
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret
Function at 0x43c880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x43c8d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43c8d0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x43c8d5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x43c8bb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x43c8e2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x44a020
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a129c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4be930]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov dword [edi], eax
mov ecx, dword [0x4be930]
lea ebp, [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov edx, dword [0x4be930]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.004839e0
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x20], 3
mov dword [esi], 0x4ac208
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x24], 0xffff
call fcn.00484e84
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x30]
test eax, 0xffff0000
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x44a0c3
push eax
mov ecx, ebp
call fcn.00484e84
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x44a0e1
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.00484e84
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x44e520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac248
push 0x422880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
je 0x44e5b2
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x44e5ab
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
jne 0x44e5ab
cmp word [eax + 0x14], dx
je 0x44e5ab
cmp dword [ebp + 0xc], edx
je 0x44e585
cmp word [eax + 4], 0x14c
jne 0x44e5ab
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e6a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x44e6ed
mov edi, dword [esp + 0x18]
test edi, edi
je 0x44e6ed
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
add eax, ebx
xor edx, edx
mov cx, word [eax + 0x14]
mov dx, word [eax + 6]
lea esi, [ecx + eax + 0x18]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x14], esi
jbe 0x44e6ed
lea eax, [esi + 0x10]
mov esi, dword [eax - 4]
cmp edi, esi
jb 0x44e6e5
mov ebp, dword [eax]
add ebp, esi
cmp edi, ebp
jb 0x44e6f4
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x44e6d6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x14]
lea edx, [ecx + ecx*4]
mov esi, dword [eax + edx*8 + 0xc]
lea ecx, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x14]
sub eax, esi
add eax, ebx
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x44e7f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
push 1
push edi
call fcn.0044e520
add esp, 8
test eax, eax
je 0x44e8bd
mov eax, dword [edi + 0x3c]
lea ecx, [eax + edi + 0x78]
mov eax, dword [eax + edi + 0x78]
test eax, eax
je 0x44e8bd
mov edx, dword [ecx + 4]
test edx, edx
je 0x44e8bd
mov ebp, dword [esp + 0x24]
push eax
push edi
call ebp
mov esi, eax
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
push edx
push edi
mov dword [esp + 0x34], ecx
call ebp
mov ebx, eax
mov eax, dword [esi + 0x1c]
push eax
push edi
call ebp
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x2c], eax
push ecx
push edi
call ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
add esp, 0x20
mov dword [esp + 0x1c], 0
test eax, eax
jbe 0x44e8bd
mov edx, dword [ebx]
push edx
push edi
call ebp
mov esi, dword [esp + 0x28]
add esp, 8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x44e8a0
test cl, cl
je 0x44e89c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x44e8a0
add eax, 2
add esi, 2
test cl, cl
jne 0x44e87c
xor eax, eax
jmp 0x44e8a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x44e8c7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x44e86f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
xor eax, eax
pop edi
mov ax, word [ecx + edx*2]
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
lea eax, [ecx + eax*4]
pop ebx
add esp, 8
ret

Function at 0x44ee20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac258
push 0x422880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x14]
push edi
mov eax, dword [ebp + 0xc]
push eax
mov ebx, dword [ebp + 8]
push ebx
call fcn.0044e7f0
add esp, 0xc
mov esi, eax
test esi, esi
je 0x44eec4
mov eax, dword [esi]
push eax
push ebx
call edi
add esp, 8
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
push ecx
push 0x40
push 4
push esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
test eax, eax
je 0x44eebd
mov edx, dword [ebp + 0x10]
mov dword [esi], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 4
push esi
call edi
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret