joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004a2e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1003d200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 3
pop esi
lea eax, [ebp - 0x88]
push eax
push 1
push 0
push str.Control_PanelDesktop
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004aba
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push str.WheelScrollLines
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004aae
push 0xa
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1001d609
add esp, 0xc
mov esi, eax
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100181cd
leave
ret
Function at 0x10008917
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10008971
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10008971
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10008961
cmp esi, ecx
jae 0x10008971
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1000894f
cmp esi, ecx
jae 0x10008971
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x10008973
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000bc7f
Capabilities:
Get graphical window text

Disassembly:
push 0xa4
mov eax, 0x1002e116
call fcn.100182ac
mov edi, ecx
mov dword [ebp - 0x9c], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], esi
push dword [eax]
mov dword [ebp - 4], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0xa8]
mov dword [eax], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ecx, eax
mov dword [ebp - 0xa0], ebx
mov eax, ebx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
test ecx, ecx
jle 0x1000bd76
lea edi, [ecx + 1]
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x98]
mov dword [ebp - 0xa0], edi
call fcn.1000bbf9
mov eax, dword [ebp - 0x9c]
jmp 0x1000bd27
cmp dword [ebp - 0x98], 0
mov dword [ebp - 4], 1
je 0x1000bd58
push edi
push dword [ebp - 0x98]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x1000bd6a
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x1000bd63
lea ecx, [ebp - 0x98]
call fcn.1000bc70
xor eax, eax
jmp 0x1000be38
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x1000bd9d
push eax
call fcn.1001dab0
inc eax
push 2
push eax
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push eax
call fcn.1000bab1
add esp, 0x10
test eax, eax
jns 0x1000bda1
mov eax, ebx
jmp 0x1000bdeb
mov edi, dword [ebp - 0x9c]
cmp edi, 0x400
jg 0x1000bdc8
push edi
call fcn.1000c03f
pop ecx
test al, al
je 0x1000bdc8
mov eax, edi
call fcn.100182f0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000bdda
push edi
lea ecx, [ebp - 0xa4]
call fcn.1000bbcc
mov esi, dword [ebp - 0xa4]
push 3
shr edi, 1
push edi
push dword [ebp - 0xa0]
push eax
call fcn.100027fa
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp dword [ebp - 0xb0], 0
mov ecx, dword [ebp - 0xa8]
mov dword [ecx], eax
je 0x1000be0a
xor ebx, ebx
test eax, eax
setne bl
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x1000be23
lea ecx, [ebp - 0x98]
call fcn.1000bc70
test esi, esi
je 0x1000be36
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.1001d1db
pop ecx
test edi, edi
jne 0x1000be27
mov eax, ebx
lea esp, [ebp - 0xc0]
call fcn.100181fe
ret 4
Function at 0x1000c4b7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebx - 0x74]
neg ebx
push 7
sbb ebx, ebx
lea edi, [ebp - 0x20]
and dword [ebp + 8], 0
and ebx, eax
pop ecx
lea eax, [ebp + 8]
push eax
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.100071b7
test eax, eax
je 0x1000c4f6
mov eax, dword [ebp + 8]
jmp 0x1000c57f
mov ecx, dword [ebx + 0x10]
xor eax, eax
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x1000c509
mov ecx, 0x80004005
jmp 0x1000c569
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edx
push 0x100309b8
push ecx
call dword [eax]
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ecx
test ecx, ecx
js 0x1000c56c
test eax, eax
je 0x1000c566
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
push 0x11
shr esi, 0xf
call edi
test ax, ax
lea ebx, [esi + 2]
push 0x12
cmovns ebx, esi
call edi
mov ecx, dword [ebp - 4]
lea edx, [ebx + 4]
test ax, ax
lea eax, [ebp - 0x20]
cmovns edx, ebx
mov esi, dword [ecx]
push edx
push eax
push ecx
call dword [esi + 0x1c]
mov ecx, eax
mov eax, dword [ebp - 4]
jmp 0x1000c569
xor ecx, ecx
inc ecx
mov dword [ebp + 8], ecx
xor ebx, ebx
test ecx, ecx
setne bl
test eax, eax
je 0x1000c57d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100116ee
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0x7c
pop eax
test esi, esi
lea edx, [esi + 0xc]
cmove edx, eax
push edx
mov eax, dword [edx]
call dword [eax + 0x18]
push 0x4c
test esi, esi
lea eax, [esi - 0x24]
pop ecx
cmove eax, ecx
pop esi
cmp dword [eax], 0
je 0x1001171d
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret 8
Function at 0x100149fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x1002eb40
call fcn.100182ac
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x10014c1c
push eax
call fcn.1001d771
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.1000bab1
add esp, 0x10
test eax, eax
js 0x10014c16
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x10014a9e
push edi
call fcn.1000c03f
pop ecx
test al, al
je 0x10014a9e
mov eax, edi
call fcn.100182f0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10014ab0
push edi
lea ecx, [ebp - 0x424]
call fcn.1000bbcc
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.100029d4
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10014c16
push 0x60
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x10014b0a
push 2
push ebx
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x10014b0a
call fcn.10010777
mov ebx, eax
jmp 0x10014be6
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x10014b31
call fcn.10010777
jmp 0x10014bd9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x10014b27
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x10014b64
mov ebx, 0x8007000e
jmp 0x10014bdb
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.100100cc
jmp 0x10014b8a
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x10014b5d
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.100165ff
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.100148bb
mov ebx, eax
test edi, edi
je 0x10014be6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10014bff
lea ecx, [ebp - 0x418]
call fcn.10011a8a
test esi, esi
je 0x10014c12
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.1001d1db
pop ecx
test edi, edi
jne 0x10014c03
mov eax, ebx
jmp 0x10014c49
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x10014c31
lea ecx, [ebp - 0x418]
call fcn.10011a8a
test esi, esi
je 0x10014c44
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.1001d1db
pop ecx
test edi, edi
jne 0x10014c35
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.100181fe
ret 0x10
Function at 0x1001585c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], ecx
jne 0x1001586e
push 0xd
pop eax
jmp 0x1001589e
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
push ebx
call fcn.1001dab0
inc eax
add ebx, eax
add edi, eax
pop ecx
cmp eax, 1
jne 0x10015875
mov eax, dword [ebp - 4]
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
leave
ret 8

Function at 0x100169f3
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10016a1f
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 4]
jne 0x10016a14
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x10021634
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10021673
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10021673
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10021673
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10021673
cmp dword [ecx + 0x74], 0xe
jbe 0x10021673
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10024348
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034d70
push 0x10034d68
push str.FlsAlloc
push 0x1f
call fcn.10024264
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002437c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100303b4]
call esi
jmp 0x10024382
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100243c6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034d80
push 0x10034d78
push str.FlsGetValue
push 0x21
call fcn.10024264
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100243fd
push dword [ebp + 8]
mov ecx, esi
call dword [0x100303b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10024405
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034d88
push 0x10034d80
push str.FlsSetValue
push 0x22
call fcn.10024264
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002443f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100303b4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10025d22
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 0x10025dbf
push ebx
push esi
call fcn.10025ceb
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.10025c7f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10025d6c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10025dbe
push edi
push eax
call fcn.10022f01
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10025d8c
call fcn.10022a34
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10025dbd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10025c7f
add esp, 0x20
test eax, eax
jne 0x10025dab
push edi
call fcn.10022a34
jmp 0x10025db3
push ebx
call fcn.10022a34
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 0x1002d160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002d18d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002d18d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40c95d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40c9a1
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40c970
jmp 0x40c9a1
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40c991
pop esi
pop ebp
ret

Function at 0x40d6f9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40d72e
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40d758
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40d758
test edi, edi
je 0x40d725
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40d725
test edi, edi
je 0x40d760
mov eax, edi
jmp 0x40d727
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40d727
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_cen_w32_d_000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.00410464
add esp, 0xc
int3
Function at 0x410498
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestSaturate.exe_gMozillaPoisonSize], eax
call fcn.0040d6f9
pop ecx
mov ecx, dword [sym.TestSaturate.exe_gMozillaPoisonSize]
mov dword [sym.TestSaturate.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x4104d0
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestSaturate.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100392ea
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100392f9
pop dword [ebp - 0x40]
mov eax, 0x100392f9
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x878b9a65
add dword [ebp - 0x50], 0xc6c6aae6
mov dword [ebp - 0x4c], 0x6beef710
sub dword [ebp - 0x4c], 0x39bbaacb
mov dword [ebp - 0x48], 0x58492837
add dword [ebp - 0x48], 0xf4031bf7
mov dword [ebp - 0x44], 0x935a99e8
sub dword [ebp - 0x44], 0x935a99e8
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x79ab4c81
sub dword [ebp - 0x50], 0x538e32b
mov dword [ebp - 0x4c], 0xf4326643
add dword [ebp - 0x4c], 0x4d39fb32
mov dword [ebp - 0x48], 0x36783729
sub dword [ebp - 0x48], 0xd308cabd
mov dword [ebp - 0x44], 0xf7230085
add dword [ebp - 0x44], 0x8dcff7b
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x4386b
push 0
call eax
mov ecx, 0x8736a064
sub ecx, 0x8736638b
mov ebx, eax
mov esi, 0x3355923a
add esi, 0xdcafdbc6
add esi, dword [ebp - 0x40]
mov edx, 0x59f14cd0
mov edi, dword [esi]
xor dword [ebp - 0x2c], eax
xor edi, edx
xor dword [ebp - 0x18], ecx
mov dword [ebx], edi
sub dword [ebp - 0x38], 0x3806b688
add ebx, 4
add esi, 0x404c713e
add esi, 0xbfb38ec6
loop 0x10039406
add eax, 0xe637
mov ebx, eax
add eax, 5
mov ecx, 0xff5966b5
add ecx, 0x10a6994b
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4010bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401115
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401115
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401107
cmp esi, ecx
jae 0x401115
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4010f5
cmp esi, ecx
jae 0x401115
cmp word [esi], 0
je 0x401115
mov eax, esi
jmp 0x401117
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401591
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0x8004ffff
lea ebx, [esi + 0x10]
je 0x4015d9
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x4015be
push edi
mov ecx, ebx
call fcn.00402341
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x14]
jne 0x4015a8
mov ecx, ebx
call fcn.00402366
lea edi, [esi + 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.00402625
jmp 0x4015dc
lea edi, [esi + 0x1c]
lea ecx, [esi + 0x20]
call fcn.0040294a
mov ecx, edi
call fcn.0040294a
mov ecx, ebx
call fcn.00402366
lea ecx, [esi + 8]
call fcn.0040294a
pop edi
lea ecx, [esi + 4]
pop esi
pop ebx
jmp fcn.0040294a

Function at 0x401a5b
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401a89
xor al, al
jmp 0x401b04
call fcn.004011e0
push eax
lea ecx, [ebp + 8]
call fcn.00402965
or dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004025e9
push eax
push ebx
push 0x41e89c
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004025c3
test edi, edi
je 0x401afa
cmp edi, 0x6f
je 0x401afa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401afa
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x1c
call fcn.004024ed
mov bl, 1
lea ecx, [ebp + 8]
call fcn.0040294a
mov al, bl
pop edi
pop ebx
leave
ret 4
Function at 0x401b0a
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
call fcn.004011e0
push eax
lea ecx, [ebp - 8]
call fcn.00402965
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.004025e9
push eax
xor ebx, ebx
mov dword [ebp - 0x10], eax
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004025c3
test esi, esi
js 0x401bc0
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402580
push 0x41e788
lea ecx, [ebp - 4]
call fcn.0040242c
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401b8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401bb8
push str.Temp
lea ecx, [ebp - 4]
call fcn.0040242c
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401a5b
test al, al
je 0x401bb8
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x20]
call fcn.004024ed
mov bl, 1
lea ecx, [ebp - 4]
call fcn.0040294a
lea ecx, [ebp - 8]
call fcn.0040294a
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x401c4c
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x420018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
or esi, 0xffffffff
call fcn.00405a60
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41e8b0
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401d49
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402580
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.0040239f
lea ecx, [ebp - 0x214]
call fcn.0040294a
push 0x41e784
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401d49
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401d49
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401d49
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401d49
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.00401fdb
pop ecx
test eax, eax
jne 0x401d3f
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401d49
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004056fe
leave
ret
Function at 0x401e30
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
xor eax, eax
test ecx, ecx
je 0x401f47
test edx, edx
je 0x401f47
mov ebp, dword [esp + 0x30]
test ebp, ebp
mov dword [esp], ecx
je 0x401e7a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x401e81
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x401e60
jmp 0x401e83
mov esi, 0x1505
jmp 0x401e83
mov esi, ecx
mov ebp, dword [esp]
mov edi, dword [ebp + 0x20]
mov ecx, edi
sub ecx, 1
jb 0x401f47
mov dword [esp + 8], edx
and ecx, esi
mov dword [esp + 0x18], ecx
mov eax, edi
xor eax, 0xfffffffe
mov ecx, edi
and ecx, 0xfffffffe
lea eax, [eax + ecx*2]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], eax
xor ebx, ebx
mov edx, edi
mov dword [esp + 4], edi
jmp 0x401ed5
inc ebx
cmp edx, ebx
je 0x401f45
mov eax, ebx
mov edi, dword [esp + 0x18]
and eax, edi
mov ecx, ebx
xor ecx, edi
lea eax, [ecx + eax*2]
and eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + eax*4]
cmp edi, 0xffffffff
je 0x401f45
mov eax, dword [ebp + 8]
cmp dword [eax + edi*4], esi
jne 0x401ed0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.004085c0
mov edx, dword [esp + 8]
mov ebp, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x30]
jne 0x401ed0
push dword [esp + 0x30]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004085e0
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401ed0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401f47
xor eax, eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret