joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x602d90
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005f96b0
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4d1463
xor al, al
jmp 0x4d158f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4d1485
xor al, al
jmp 0x4d158f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, ebp
jne 0x4d1498
xor al, al
jmp 0x4d158f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
cmp edi, ebp
jne 0x4d14ac
xor al, al
jmp 0x4d158f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.005ed7d9
test eax, eax
jne 0x4d14e0
xor al, al
jmp 0x4d158f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0xad4e1c
mov dword [esp + 0x20], ebp
call fcn.005f96b0
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.005f64a8
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.005f64ff
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4d1574
mov ax, word [ebx]
test ax, ax
je 0x4d1566
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004d15b0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4d154a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.005f64ff
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4d1ab0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.005f7b94
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4d1af6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.005d9584
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0xb3d418
push ecx
call fcn.005db75b
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4da810
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.004f0690
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x4da842
mov dword [esp + 0x2c], 0
jmp 0x4da85d
mov ecx, ebp
call fcn.004f0690
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call fcn.004f0690
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.004f06a0
cmp eax, esi
jae 0x4da89d
mov ecx, ebp
call fcn.004f06a0
mov dword [esp + 0x10], eax
jmp 0x4da8a1
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call fcn.004f04a0
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x4da90d
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x4da908
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call fcn.004e6b80
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x4da8fb
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.004e6f60
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x4da8c8
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x4da8b6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x4fbb10
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0x9ac6cdd7
jne 0x4fbb52
mov dword [esp + 8], eax
lea ecx, [esi + 2]
mov edx, 9
xor ax, word [ecx]
add ecx, 2
dec edx
jne 0x4fbb2a
cmp ax, word [esi + 0x14]
jne 0x4fbb52
mov si, word [esi + 0xe]
test si, si
jbe 0x4fbb52
cmp si, 0x9ec
ja 0x4fbb52
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x50de10
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x50de79
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x50de3b
test byte [eax + 0x230], 1
jne 0x50de58
movzx si, byte [edx]
cmp si, cx
jbe 0x50de58
push str.Invalid_background_palette_index
push eax
call fcn.00506210
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push 0xad595c
push eax
call fcn.0050cb40
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x50def1
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.0050cb20
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.0050cb20
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.0050cb20
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x50deea
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x50deea
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push eax
call fcn.00506210
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x50de60
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x50df24
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.00506210
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0050cb20
lea ecx, [esp + 0x10]
push 2
push ecx
push 0xad595c
push esi
call fcn.0050cb40
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret

Function at 0x510650
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x510680
push esi
call fcn.00510c10
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x510679
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x510703
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x5106ef
mov eax, dword [esi + 8]
test eax, eax
je 0x5106a4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5106eb
cmp eax, 2
je 0x5106ef
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x510697
cmp eax, 3
je 0x5106ca
cmp eax, 1
jne 0x510697
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x510697
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x510697
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00510730
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x510723
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00510730
add esp, 4
pop esi
ret
Function at 0x5140c0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.0051c1e0
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.0051c1a0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x514104
push edi
call fcn.0051c1f0
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.00514200
mov dword [esi + 4], fcn.00514350
mov dword [esi + 8], fcn.00514400
mov dword [esi + 0xc], fcn.005144b0
mov dword [esi + 0x10], 0x514560
mov dword [esi + 0x14], 0x5145d0
mov dword [esi + 0x18], 0x514640
mov dword [esi + 0x1c], 0x5147c0
mov dword [esi + 0x20], 0x5149b0
mov dword [esi + 0x24], fcn.00514ba0
mov dword [esi + 0x28], 0x514ca0
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x514166
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push 0xb4c35c
mov dword [edi + 4], esi
call dword [sym.imp.msvcrt.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x5141f8
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push 0xb4c354
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x5141f8
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x5141c1
cmp al, 0x4d
jne 0x5141e5
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x556290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
push edi
je 0x5562d0
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push 2
push ebp
push ebx
push ecx
push esi
push 0
push eax
call fcn.00564490
mov edi, dword [esp + 0x78]
add esp, 0x24
jmp 0x5562f1
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov edi, 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x556328
lea edx, [esp + 0x30]
lea ecx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x64]
push ecx
push 2
push ebp
push ebx
push edx
push esi
push 0x10000
push eax
call fcn.00564490
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
add esp, 0x24
jmp 0x556341
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
imul eax, edi
mov ecx, dword [esp + 0x70]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x60], eax
mov dword [ecx], eax
jle 0x5563de
mov edx, dword [esp + 0x74]
lea ecx, [edx + 0x1c]
jmp 0x556365
mov edi, dword [esp + 0x54]
mov eax, ebx
cdq
idiv edi
mov eax, ebx
mov esi, edx
cdq
idiv edi
shl esi, 4
mov edx, esi
mov esi, dword [esp + edx + 0x10]
mov dword [ecx - 0x1c], esi
shl eax, 4
mov ebp, dword [esp + eax + 0x34]
mov edi, dword [esp + eax + 0x30]
mov dword [ecx - 0x10], ebp
mov ebp, dword [esp + edx + 0x18]
mov dword [ecx - 0x18], edi
mov edi, dword [esp + edx + 0x14]
mov edx, dword [esp + edx + 0x1c]
mov dword [ecx - 0xc], ebp
mov ebp, dword [esp + eax + 0x38]
mov eax, dword [esp + eax + 0x3c]
mov dword [ecx - 0x14], edi
mov dword [ecx - 8], ebp
mov dword [ecx - 4], edx
mov dword [ecx], eax
mov edx, dword [ecx - 0x18]
cmp esi, edi
jne 0x5563c1
mov eax, dword [ecx - 8]
mov dword [ecx - 0x10], edx
mov dword [ecx], eax
jmp 0x5563d2
cmp edx, dword [ecx - 0x10]
jne 0x5563d2
mov eax, dword [ecx - 0x1c]
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0x14], eax
mov dword [ecx - 4], edx
mov eax, dword [esp + 0x60]
inc ebx
add ecx, 0x20
cmp ebx, eax
jl 0x556361
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x56fa60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x56faa9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x56ff20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x603c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0056fad0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0056fb50
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0056fb50
lea ecx, [esi + 0xc]
call fcn.005ef4f9
lea ecx, [esi + 0x10]
call fcn.005ef4f9
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005710e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005710e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005710e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005ef56e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005ef56e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5712d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x571336
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x571336
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x571317
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x5724f0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0xb5f39c]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0xb5f32c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x572503
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x572544
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0xb5f3d4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x572576
mov bl, byte [esp + ecx + 0x4c]
jmp 0x57257a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x57256b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x572598
mov bl, byte [esp + ecx + 0x4c]
jmp 0x57259c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x57258d
xor ecx, ecx
mov eax, 0xb5f33c
xor ebx, ebx
mov bl, byte [ecx + 0xb5f3e4]
cmp byte [esp + ebx + 0x14], 0
je 0x5725c7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0xb5f3fc]
cmp byte [esp + ebx + 0x14], 0
je 0x5725de
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0xb5f39c
jl 0x5725ae
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x572537
lea edx, [esp + 0x84]
push edx
call fcn.00572620
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x5740d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.00573ed0
pop edi
add esp, 0x104
ret 4

Function at 0x580110
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
xor esi, esi
push eax
push 0x400
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x420]
lea edi, [esp + 0x18]
push ecx
or ecx, 0xffffffff
xor eax, eax
push 0xba1d84
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x20]
push edx
call fcn.005db75b
mov ebp, dword [esp + 0x428]
mov al, byte [esp + 0x1f]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
add esp, 0xc
mov dword [ebp + 4], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 8], esi
mov ebx, ecx
mov dword [ebp + 0xc], esi
cmp ebx, 0xfffffffd
jbe 0x58019e
call fcn.005e95d8
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x5801d0
mov al, byte [ecx - 1]
test al, al
je 0x5801d0
cmp al, 0xff
je 0x5801d0
cmp ebx, esi
jne 0x580201
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.00581410
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
cmp ebx, esi
jne 0x5801ec
push 1
mov ecx, ebp
call fcn.00581410
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x5801f8
cmp eax, ebx
jae 0x580209
push 1
mov ecx, ebp
call fcn.00581410
push ebx
mov ecx, ebp
call fcn.00580e70
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [eax + ebx], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x408
ret 8
Function at 0x5805d0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x603f88
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x5806f4
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x580706
dec ecx
je 0x58064c
dec ecx
jne 0x5806f4
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x58071b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x58071b
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x580645
mov eax, dword [0xafbf58]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.00580b50
mov bl, 1
jmp 0x5806e7
mov edx, dword [0xafbf58]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00580950
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x5806d5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x5806d5
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x5806a4
mov eax, dword [0xafbf58]
mov ecx, edi
push eax
push ebp
call fcn.00580b50
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x5806b3
mov eax, 0xafbf54
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x5806e3
mov al, byte [ecx - 1]
test al, al
je 0x5806d9
cmp al, 0xff
je 0x5806d9
dec al
mov byte [ecx - 1], al
jmp 0x5806e3
xor bl, bl
jmp 0x5806ba
dec ecx
push ecx
call fcn.005ef2d8
add esp, 4
test bl, bl
je 0x5806f2
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x58071b
push eax
call fcn.00581700
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x5806e7
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x581000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0xba1da4
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x58104f
call fcn.005f96b0
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x581034
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0xba1da4
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x58104f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource_1]
mov ebx, eax
test ebx, ebx
jne 0x581065
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
test eax, eax
jne 0x581079
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x581092
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.00581800
add esp, 0xc
test al, al
jne 0x581131
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x581139
mov esi, dword [0xafbf60]
jae 0x5810c1
call fcn.005e9804
mov ecx, edi
call fcn.00581340
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x5810d5
mov esi, ecx
test esi, esi
jbe 0x581113
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.005d9a70
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.00581220
test al, al
je 0x58110f
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x58111f
mov edi, 0xafbf5c
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.00581150
jmp 0x581113