joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45812f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d4848]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x458175
cmp word [ebx], dx
jne 0x458175
or byte [eax + edi + 0x28], 4
jmp 0x45817a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4582dd
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4582bd
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4581bb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4581f1
cmp eax, edx
jae 0x4581ff
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x458196
jmp 0x4582dd
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4582b8
cmp dword [ebp - 0x18], 0
je 0x4582b8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d4848]
test byte [eax + edi + 0x28], 0x48
je 0x45828e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x458252
mov word [esi], cx
jmp 0x458289
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d4848]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d4848]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d4848]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4582dd
pop eax
cmp word [ebp - 4], ax
jne 0x45829e
cmp esi, ebx
jne 0x45829e
mov word [esi], ax
jmp 0x4582da
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00458b68
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4582dd
push 0xd
pop eax
jmp 0x458299
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d4848]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4582d7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4582dd
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45a4ba
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x45a557
push ebx
push esi
call fcn.0045a483
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0045915c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45a504
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45a556
push edi
push eax
call fcn.00452925
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45a524
call fcn.004528eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45a555
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045915c
add esp, 0x20
test eax, eax
jne 0x45a543
push edi
call fcn.004528eb
jmp 0x45a54b
push ebx
call fcn.004528eb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x45c7ae
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00452600
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45c81d
cmp esi, dword [ebp - 4]
je 0x45c818
cmp dword [ebp + 0xc], 0
je 0x45c818
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45c7f5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0045c300
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x45c81f
xor eax, eax
inc eax
jmp 0x45c81f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45c884
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d1840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00452600
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00452600
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x45c8fb
cmp word [ecx], dx
je 0x45c8fb
mov eax, dword [0x4696dc]
push edi
dec eax
push eax
push 0x4695c8
call fcn.0045c823
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x45c96e
cmp word [eax], dx
je 0x45c96e
mov eax, dword [edi]
test eax, eax
je 0x45c91f
cmp word [eax], dx
je 0x45c91f
lea eax, [ebp - 0x10]
push eax
call fcn.0045c206
jmp 0x45c928
lea eax, [ebp - 0x10]
push eax
call fcn.0045c2a1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x45c998
mov eax, dword [0x4695c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4692b8
call fcn.0045c823
add esp, 0xc
test al, al
je 0x45c998
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x45c963
cmp word [eax], di
je 0x45c963
lea eax, [ebp - 0x10]
push eax
call fcn.0045c206
pop ecx
jmp 0x45c99a
lea eax, [ebp - 0x10]
push eax
call fcn.0045c2a1
jmp 0x45c960
mov eax, dword [edi]
test eax, eax
je 0x45c985
cmp word [eax], dx
je 0x45c985
lea eax, [ebp - 0x10]
push eax
call fcn.0045c1bb
pop ecx
jmp 0x45c998
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x45ca63
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0045c6a8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45ca63
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x45ca63
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x45ca63
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45c9f0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00455433
test ebx, ebx
je 0x45ca5e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00455433
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45ca63
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45ca63
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045f8b1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x45ca65
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445a4a
leave
ret
Function at 0x460d30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x460d5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x460d5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4012b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov edx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jb 0x4012d8
mov eax, ecx
test eax, eax
mov dword [esp + 4], eax
jbe 0x401306
lea ecx, [esi + 0x94]
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
mov dword [esi + 0xa8], eax
pop esi
add esp, 0x14
ret 8

Function at 0x401350
Capabilities:
Write file on windows

Disassembly:
lea eax, [ecx + 0x80]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 1
ret 8

Function at 0x40161f
Capabilities:
Resume thread

Disassembly:
sub esp, 0x4c
mov eax, dword [0x46488c]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x64]
cmp al, 4
jbe 0x401639
movzx eax, al
push eax
push str..COM_d
lea ecx, [esp + 0x24]
push ecx
jmp 0x401647
movzx edx, al
push edx
push str.COM_d
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor ebx, ebx
push ebx
push 0x40000080
push 3
push ebx
push ebx
push 0xc0000000
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x401687
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00431081
add esp, 0x4c
ret
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov edx, dword [esi + 4]
push 0x1000
push 0x1000
push edx
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov eax, dword [esi + 4]
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edx, dword [esi + 4]
lea ecx, [esp + 0xc]
mov eax, 0x3e8
push ecx
push edx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov ecx, esi
call fcn.00401230
mov edi, eax
cmp edi, ebx
je 0x40172a
push ebx
push 4
push ebx
push ebx
push esi
push 0x4014f0
mov dword [esi + 8], 1
call fcn.00414782
mov dword [0x465cc0], eax
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
pop edi
mov dword [esi + 0xac], ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00431081
add esp, 0x4c
ret
mov ecx, dword [esi + 4]
push ecx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00431081
add esp, 0x4c
ret
Function at 0x401aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ab9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401af4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401af0
lea ebx, [ebx]
cmp esi, eax
jae 0x401af4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401ae0
cmp esi, eax
jb 0x401afa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401b90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x448bb3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46488c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.0041531d
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [esp + 0x28], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x30]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
mov byte [esp + 0x28], 1
sete al
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x401c60
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00415736
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.004159fd
test ebp, ebp
je 0x401c3e
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.00415a82
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00415431
jmp 0x401c72
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x4060c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x46488c]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
push esi
push edi
mov ebx, 0x104
push ebx
mov dword [esp + 0x2c], ecx
xor edi, edi
call fcn.004309d9
mov esi, eax
push ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
call fcn.004309d9
add esp, 8
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push 0x20019
push edi
push str.HARDWAREDEVICEMAPSERIALCOMM
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea edx, [esp + 0x18]
push edx
push edi
lea eax, [esp + 0x28]
push eax
push esi
push edi
push ecx
call ebp
test eax, eax
jne 0x406186
lea esp, [esp]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push esi
add edi, 1
push edi
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ebx
call ebp
test eax, eax
je 0x406150
add edi, 1
xor esi, esi
add edi, 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
je 0x4061fa
lea esp, [esp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x234]
push edx
push esi
push eax
call ebp
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x1c4]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
add esi, 1
cmp esi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ebx
jb 0x4061a0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x24]
push edx
call fcn.00430a9c
mov eax, dword [esp + 0x24]
push eax
call fcn.00430a9c
mov ecx, dword [esp + 0x41c]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431081
add esp, 0x408
ret

Function at 0x4065d0
Capabilities:
Create directory

Disassembly:
push esi
push 0x44eae8
push str.C:_tmp_
call fcn.00433965
add esp, 8
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, esi
pop esi
ret
Function at 0x406930
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
movzx eax, word [esp + 4]
push esi
push str.DLLEXE
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x406970
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40696a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
ret 8
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40698d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4069b4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
xor eax, eax
pop esi
ret 8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4069f7
mov ecx, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4069f7
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406a08
lea ecx, [esp + 0x14]
call fcn.00401a60
pop edi
pop ebx
xor eax, eax
pop esi
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00401a60
pop edi
pop ebx
mov eax, 1
pop esi
ret 8

Function at 0x408810
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, edi
jbe 0x408823
call fcn.00433d25
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, ebx
lea ecx, [ecx]
cmp ebx, edi
jbe 0x408839
call fcn.00433d25
cmp esi, edi
je 0x408863
jb 0x408844
call fcn.00433d25
cmp dword [esi + 0x18], 0x10
jb 0x40884f
mov eax, dword [esi + 4]
jmp 0x408852
lea eax, [esi + 4]
push eax
call ebp
cmp esi, edi
jb 0x40885e
call fcn.00433d25
add esi, 0x1c
jmp 0x408830
cmp dword [0x463234], 0x10
mov eax, dword [0x463220]
pop esi
pop ebp
jae 0x408878
mov eax, 0x463220
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test ebx, ebx
je 0x40889d
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
call fcn.004079b0
push ebx
call fcn.004134a7
add esp, 0x14
pop edi
pop ebx
ret
Function at 0x410d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44a0e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x46488c]
xor eax, esp
mov dword [esp + 0x408], eax
push ebp
push esi
push edi
mov eax, dword [0x46488c]
xor eax, esp
push eax
lea eax, [esp + 0x41c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x42c]
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
lea eax, [esp + 0x318]
push eax
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x438], 1
call fcn.00434754
mov ebp, dword [esp + 0x448]
push ebp
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0043479e
add esp, 0x28
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [esp + eax + 0x14], 0
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00402b00
lea eax, [edi - 0x10]
mov byte [esp + 0x424], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410e48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x424], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410e6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00431081
add esp, 0x418
ret

Function at 0x41ad98
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41addb
call fcn.0041507c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41addb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41adf6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041a94f
test ebx, ebx
mov esi, eax
je 0x41adf4
test edi, edi
je 0x41adf4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41fa7e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41fac4
call fcn.0041507c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41fac4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41fb07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41faf0
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41faf0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41fb04
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x431081
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46488c]
jne 0x43108b
repz ret
jmp fcn.00439838

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x441ea6
call fcn.00434e89
mov dword [eax], esi
call fcn.00434e76
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00433d01
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x441e82
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x441ed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00434e9c
pop ecx
call fcn.00434e76
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x441efc
test al, 1
je 0x441efc
test byte [esp + 0xc], 2
je 0x441efc
call fcn.00434e89
mov dword [eax], 5
call fcn.00434e76
mov dword [eax], 0xd
jmp 0x441ecc
xor eax, eax
pop esi
ret