joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a850
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e7ad
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x450610]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x450610]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov esi, dword [esp + 0x138]
xor edi, edi
mov dword [esp + 0x130], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
call fcn.0041a128
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40a8bd
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ebx, 1
mov dword [esp + 0x130], edi
mov dword [esp + 0x18], ebx
call fcn.0041a128
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40a8f5
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x130], ebx
call fcn.0041a01a
mov ecx, dword [eax + 4]
call fcn.0041d8fc
lea ecx, [esp + 0x20]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a930
sub eax, edx
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401a90
push 0x441968
lea ecx, [esp + 0x18]
call fcn.00401f30
call fcn.0041a01a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xa4]
cmp dword [eax - 0xc], edi
je 0x40a980
call fcn.0041a01a
mov eax, dword [eax + 4]
add eax, 0xa4
push eax
lea ecx, [esp + 0x18]
call fcn.004020d0
mov ebp, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ebx, [ebx]
push edi
push ebp
push str._sir_ext_temp__d
push esi
call fcn.004061b0
mov eax, dword [esi]
add esp, 0x10
push eax
call ebx
cmp eax, 0xffffffff
je 0x40a9ad
inc edi
jmp 0x40a990
call fcn.0041a01a
mov ecx, dword [eax + 4]
call fcn.0041d911
lea eax, [ebp - 0x10]
mov byte [esp + 0x130], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004294c0
add esp, 0x120
ret 4
Function at 0x40aa10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e809
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x450610]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.0041a128
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40aa55
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], edi
call fcn.0041a128
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40aa81
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
push str.__xml_version_1.0__encoding_iso_8859_1___
mov ecx, esi
mov byte [esp + 0x1c], 3
call fcn.004098d0
mov dword [esi + 0x28], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40c220
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x198]
push eax
push ecx
mov ecx, esi
call fcn.0040bc40
mov dword [esi + 0x198], eax
movzx eax, al
add eax, dword [esi + 0x19c]
mov ecx, esi
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x19c], eax
shr eax, 0x18
mov byte [esp + 8], al
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x1a0]
push edx
push eax
call fcn.0040bc40
mov dword [esi + 0x1a0], eax
pop esi
ret 4

Function at 0x40e9b0
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40e9c1
xor al, al
pop esi
ret 4
push str.ZipArchive_Mapping_File
push 0
push 0
push 4
push 0
call fcn.00411150
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi], eax
test eax, eax
je 0x40e9bb
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
test eax, eax
mov dword [esi + 4], eax
setne cl
mov al, cl
pop esi
ret 4
Function at 0x4113a0
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x43f298
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x450610]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x20]
call fcn.0040e950
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x38], 0
call fcn.00413b00
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
movzx edx, word [eax + 4]
mov word [esi + 8], dx
movzx ecx, word [eax + 6]
mov word [esi + 0xa], cx
movzx edx, word [eax + 8]
mov word [esi + 0xc], dx
movzx ecx, word [eax + 0xa]
mov word [esi + 0xe], cx
movzx edx, word [eax + 0xc]
mov word [esi + 0x10], dx
movzx ecx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
movzx ecx, word [eax + 0x20]
movzx edx, word [eax + 0x22]
movzx ebx, word [eax + 0x1c]
movzx ebp, word [eax + 0x1e]
mov word [esi + 0x20], dx
mov dword [esp + 0x34], ecx
movzx ecx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x18]
mov dword [esi + 0x28], eax
call fcn.0040e830
mov ecx, dword [esi + 4]
cmp ecx, dword [0x44e698]
jne 0x411509
mov edx, dword [edi + 0x50]
movzx ebx, bx
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x1c], edx
call fcn.0040e860
mov eax, dword [esi + 0x3c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.00413b00
test bp, bp
je 0x4114c5
movzx ebx, bp
push 0
push ebx
lea ecx, [esi + 0x2c]
call fcn.0040e860
mov eax, dword [esi + 0x30]
push 1
push ebx
push eax
mov ecx, edi
call fcn.00413b00
mov eax, dword [esp + 0x34]
test ax, ax
je 0x4114ea
movzx ebx, ax
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.0040e860
mov esi, dword [esi + 0x48]
push 1
push ebx
push esi
mov ecx, edi
call fcn.00413b00
mov eax, dword [esp + 0x14]
cmp dword [edi + 0x50], eax
lea ecx, [esp + 0x18]
sete bl
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040e980
mov al, bl
jmp 0x41151c
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040e980
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x4115b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43f2c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x450610]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ebp, dword [esi + 0x40]
mov edi, dword [esi + 0x34]
mov dword [esp + 0x18], eax
movzx eax, ax
movzx ecx, di
movzx ebx, bp
mov dword [esp + 0x1c], eax
add eax, ebx
lea eax, [eax + ecx + 0x2e]
push 0
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.0040e950
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
movzx eax, word [esi + 8]
mov ecx, dword [esp + 0x28]
mov word [ecx + 4], ax
movzx edx, word [esi + 0xa]
mov eax, dword [esp + 0x28]
mov word [eax + 6], dx
movzx ecx, word [esi + 0xc]
mov edx, dword [esp + 0x28]
mov word [edx + 8], cx
movzx eax, word [esi + 0xe]
mov ecx, dword [esp + 0x28]
mov word [ecx + 0xa], ax
movzx edx, word [esi + 0x10]
mov eax, dword [esp + 0x28]
mov word [eax + 0xc], dx
movzx ecx, word [esi + 0x12]
mov edx, dword [esp + 0x28]
mov word [edx + 0xe], cx
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x10], eax
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x28]
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x18], ecx
mov eax, dword [esp + 0x28]
mov word [eax + 0x1c], bp
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
mov word [ecx + 0x1e], di
mov edx, dword [esp + 0x28]
mov word [edx + 0x20], bp
movzx eax, word [esi + 0x20]
mov ecx, dword [esp + 0x28]
mov word [ecx + 0x22], ax
movzx edx, word [esi + 0x22]
mov eax, dword [esp + 0x28]
mov word [eax + 0x24], dx
mov ecx, dword [esi + 0x24]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x26], ecx
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x2a], eax
mov eax, dword [esi + 0x3c]
mov edx, dword [esp + 0x28]
push ebx
push eax
add edx, 0x2e
push edx
mov dword [esp + 0x44], 0
call fcn.0042aa20
add esp, 0xc
test di, di
je 0x411700
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x28]
push ecx
push eax
lea eax, [ebx + edx + 0x2e]
push eax
call fcn.0042aa20
add esp, 0xc
test bp, bp
je 0x411725
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov esi, dword [esi + 0x48]
mov eax, dword [esp + 0x28]
push ecx
add ebx, edx
lea ecx, [ebx + eax + 0x2e]
push esi
push ecx
call fcn.0042aa20
add esp, 0xc
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
push 1
push esi
push edx
call fcn.004136d0
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040e980
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x412050
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x4121c0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4121e2
cmp byte [esp + 0xc], al
je 0x4121de
push esi
push 0x71
call fcn.0040bc70
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x412250
Capabilities:
Access peb ldr_data
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x43f428
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
mov eax, dword [0x450610]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
call fcn.0040cd90
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.00412220
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
mov eax, dword [esp + 8]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4122c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00411b10
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x28
ret
Function at 0x4122f0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x43f460
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x450610]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x30]
call fcn.0040cd90
lea ecx, [esp + 0x14]
push ecx
xor ebx, ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], ebx
call fcn.00412220
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
mov byte [esp + 0x60], 1
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x41241f
push 0x4423d4
lea ecx, [esp + 0x18]
call fcn.00401f30
mov esi, dword [esp + 0x14]
mov ebp, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebp + 1]
sub eax, edi
or eax, ecx
jge 0x41239c
push edi
lea ecx, [esp + 0x18]
call fcn.00401630
mov esi, dword [esp + 0x14]
cmp edi, ebx
mov byte [esi + ebp], 0x5c
jl 0x412415
cmp edi, dword [esi - 8]
jg 0x412415
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esi - 0xc], edi
push esi
mov byte [edi + esi], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x41241f
lea eax, [esi - 0x10]
mov byte [esp + 0x4c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4123ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00411b10
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push 0x80070057
call fcn.00401090
mov edi, dword [esp + 0x1c]
imul edi, dword [esp + 0x20]
imul edi, dword [esp + 0x24]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x4c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412451
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00411b10
mov eax, edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret

Function at 0x412480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x412499
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push esi
call fcn.00419326
add esp, 4
mov edi, eax
push edi
push esi
mov bl, 1
call ebp
test eax, eax
jne 0x4124c2
push edi
xor bl, bl
call fcn.0041931b
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push edi
call fcn.00402e30
push edi
call fcn.0041931b
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
ret
Function at 0x4126e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f511
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x450610]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor esi, esi
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
call fcn.00403c40
movzx ecx, byte [0x4429f1]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], esi
call fcn.00401bd0
mov edx, dword [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040cd90
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 1
call fcn.0040d810
mov ecx, dword [esp + 0xc]
xor edx, edx
cmp ecx, esi
setne dl
mov byte [esp + 0x38], 2
mov dword [esp + 0x10], 1
cmp edx, esi
jne 0x412775
push 0x80004005
call fcn.00401090
mov eax, dword [eax]
push ecx
push eax
call fcn.0042886c
add esp, 8
cmp eax, esi
sete al
or esi, 0xffffffff
test al, al
jne 0x4127a2
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00412090
add esp, 4
cmp eax, esi
je 0x4127a2
xor bl, bl
jmp 0x4127a4
mov bl, 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x38], 1
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4127cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4128b4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040d810
mov eax, dword [eax]
push eax
mov byte [esp + 0x3c], 3
call fcn.004126e0
add esp, 4
test al, al
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41281a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x412861
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.00411b10
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x38], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x41284d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004120d0
add esp, 4
test al, al
jne 0x4128b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], al
call fcn.00411b10
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x38], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x41284d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.00411b10
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x38], esi
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4128e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x413c90
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x413c9f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x44e6c4]
test eax, eax
je 0x413cad
call fcn.00413c30
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x413daf
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x451af4]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x451af4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x451af4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x451af4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x451af4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x451af4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x451af4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x451af4]
xor eax, ecx
inc esi
dec edi
jne 0x413cc7
pop edi
test edx, edx
je 0x413dd1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x451af4]
xor eax, ecx
inc esi
dec edx
jne 0x413db3
pop ebx
pop esi
not eax
ret 0xc
Function at 0x41d316
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x423e65
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x423eac
call fcn.0041a01a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x423eac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x423ec8
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004239df
mov esi, eax
test edi, edi
je 0x423ec6
test ebx, ebx
je 0x423ec6
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4294c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450610]
jne 0x4294ca
repz ret
jmp fcn.00431c7c

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x429a1f
call fcn.0042b6ef
mov dword [eax], esi
call fcn.0042b6dc
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042feff
add esp, 0x14
push 0x16
pop eax
jmp 0x429a74
test dword [ebp + 0xc], 0xfffffff9
jne 0x4299fb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x429a4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042b702
pop ecx
call fcn.0042b6dc
mov eax, dword [eax]
jmp 0x429a74
test al, 0x10
jne 0x429a72
test al, 1
je 0x429a72
test byte [ebp + 0xc], 2
je 0x429a72
call fcn.0042b6ef
mov dword [eax], 5
call fcn.0042b6dc
mov dword [eax], 0xd
jmp 0x429a43
xor eax, eax
pop esi
pop ebp
ret
Function at 0x43a8c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042f80a
and dword [ebp - 4], 0
cmp dword [0x454778], 0
mov ebx, eax
jne 0x43a976
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43aa27
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x447120
push edi
call esi
test eax, eax
je 0x43aa27
push eax
call fcn.0042f798
mov dword [esp], 0x447110
push edi
mov dword [0x454778], eax
call esi
push eax
call fcn.0042f798
mov dword [esp], 0x4470fc
push edi
mov dword [0x45477c], eax
call esi
push eax
call fcn.0042f798
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x454780], eax
call esi
push eax
call fcn.0042f798
pop ecx
mov dword [0x454788], eax
test eax, eax
je 0x43a976
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042f798
pop ecx
mov dword [0x454784], eax
mov eax, dword [0x454784]
cmp eax, ebx
je 0x43a9ce
cmp dword [0x454788], ebx
je 0x43a9ce
push eax
call fcn.0042f813
push dword [0x454788]
mov esi, eax
call fcn.0042f813
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43a9ce
test edi, edi
je 0x43a9ce
call esi
test eax, eax
je 0x43a9c5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43a9c5
test byte [ebp - 0xc], 1
jne 0x43a9ce
or dword [ebp + 0x10], 0x200000
jmp 0x43aa07
mov eax, dword [0x45477c]
cmp eax, ebx
je 0x43aa07
push eax
call fcn.0042f813
pop ecx
test eax, eax
je 0x43aa07
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43aa07
mov eax, dword [0x454780]
cmp eax, ebx
je 0x43aa07
push eax
call fcn.0042f813
pop ecx
test eax, eax
je 0x43aa07
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x454778]
call fcn.0042f813
pop ecx
test eax, eax
je 0x43aa27
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43aa29
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret