joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c1d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407c4b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x407c52
cmp ebx, dword [eax + 4]
jae 0x407c52
xor eax, eax
jmp 0x407e42
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407c63
xor eax, eax
inc eax
jmp 0x407e41
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407c79
cmp ecx, edx
jae 0x407dbe
cmp dword [eax + 4], 0
je 0x407c82
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407c6a
cmp dword [ebp + 8], 0
je 0x407ca4
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407dbe
cmp eax, esi
jae 0x407dbe
mov eax, dword [0x40d8d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x407cc9
cmp dword [esi*4 + 0x40d8d8], edi
je 0x407dc2
inc esi
cmp esi, eax
jl 0x407cb7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407e3e
cmp dword [ebp - 8], 0x1000000
jne 0x407e3e
test byte [ebp - 0xc], 0xcc
je 0x407d47
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407e3e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407e3e
cmp word [eax + 0x18], 0x10b
jne 0x407e3e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407e3e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407d47
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407d47
test byte [ecx + 0x27], 0x80
jne 0x407dbe
push 1
push 0x40d918
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407c5b
mov ecx, dword [0x40d8d0]
test ecx, ecx
mov edx, ecx
jle 0x407d7b
lea eax, [ecx*4 + 0x40d8d4]
cmp dword [eax], edi
je 0x407d7b
dec edx
sub eax, 4
test edx, edx
jg 0x407d6f
test edx, edx
jne 0x407dac
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407d88
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407da0
lea eax, [edx*4 + 0x40d8d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407d8e
cmp ecx, 0x10
jge 0x407dac
inc ecx
mov dword [0x40d8d0], ecx
push 0
push 0x40d918
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407c5b
xor eax, eax
jmp 0x407e41
test esi, esi
jle 0x407c5b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40d918
call ebx
test eax, eax
jne 0x407c5b
cmp dword [esi*4 + 0x40d8d8], edi
je 0x407e18
mov eax, dword [0x40d8d0]
lea esi, [eax - 1]
test esi, esi
jl 0x407e06
cmp dword [esi*4 + 0x40d8d8], edi
je 0x407e02
dec esi
jns 0x407df6
test esi, esi
jge 0x407e16
cmp eax, 0x10
jge 0x407e11
inc eax
mov dword [0x40d8d0], eax
lea esi, [eax - 1]
jmp 0x407e18
je 0x407e30
xor ecx, ecx
test esi, esi
jl 0x407e30
lea eax, [ecx*4 + 0x40d8d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407e1e
push 0
push 0x40d918
call ebx
jmp 0x407c5b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40ebc0]
push edi
jae 0x4081d7
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x40ebe0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4081d7
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4080ab
test dl, 2
jne 0x4080ab
test dl, 0x48
je 0x408075
cmp byte [eax + 5], 0xa
je 0x408075
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4080be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4080a6
mov dword [0x40d754], ecx
jmp 0x4081de
cmp eax, 0x6d
jne 0x4080b2
xor eax, eax
jmp 0x4081eb
push eax
call fcn.00408e17
pop ecx
jmp 0x4081e8
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x4081d2
test eax, eax
je 0x4080e5
cmp byte [ebx], 0xa
jne 0x4080e5
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4080ee
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x4081cc
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4081bc
cmp al, 0xd
je 0x408120
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4081ae
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40813a
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x408135
add dword [ebp - 8], 2
jmp 0x40818e
mov dword [ebp - 8], eax
jmp 0x4081aa
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408162
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4081aa
cmp dword [ebp - 0x10], 0
je 0x4081aa
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x408183
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40818e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4081ad
cmp ebx, dword [ebp + 0xc]
jne 0x408193
cmp byte [ebp - 1], 0xa
jne 0x408193
mov byte [ebx], 0xa
jmp 0x4081ad
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00408d78
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4081ae
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x408104
jmp 0x4081cc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4081cc
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4081eb
and dword [0x40d754], 0
mov dword [0x40d750], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x501f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xad000]
push edi
jmp 0x501f4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x501f51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x501f40
mov eax, 1
add ebx, ebx
jne 0x501f63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x501f74
jne 0x501f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x501f93
dec eax
add ebx, ebx
jne 0x501f80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x501f58
add ebx, ebx
jne 0x501f8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x501fe5
xor ecx, ecx
sub eax, 3
jb 0x501fab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50201a
sar eax, 1
mov ebp, eax
jmp 0x501fb6
add ebx, ebx
jne 0x501fb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x501f84
inc ecx
add ebx, ebx
jne 0x501fc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x501f84
add ebx, ebx
jne 0x501fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x501fc6
jne 0x501fe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x501fc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x502004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x501ff6
jmp 0x501f46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x502004
add edi, ecx
jmp 0x501f46
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x502022
cmp byte [edi], 0x11
jne 0x502022
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x502027
lea edi, [esi + 0xfa000]
mov eax, dword [edi]
or eax, eax
je 0x50209f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12b728]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12b8a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x502054
mov ecx, edi
jns 0x502083
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12b8a8]
or eax, eax
je 0x502099
mov dword [ebx], eax
add ebx, 4
jmp 0x502071
call dword [esi + 0x12b8b8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5020d0
cmp al, 0xef
ja 0x5020c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5020a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5020b2
mov ebp, dword [esi + 0x12b8ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x502104
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x4015cc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4015de
mov eax, dword [0x4d908b]
shl eax, 2
mov dword [0x4d908f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004cc57c
pop edx
call fcn.004cb900
call fcn.004cc580
push 0
call fcn.004cd40c
pop ecx
push 0x4d9034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4d9093], eax
push 0
jmp fcn.004d5fd8

Function at 0x409614
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov ecx, eax
mov edi, dword [ebp + 8]
and cl, 0xff
mov esi, dword [ebp + 0x10]
and ecx, 0xff
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
movzx ecx, ax
sar ecx, 8
shr eax, 0x10
and cl, 0xff
and ecx, 0xff
and al, 0xff
mov dword [ebp - 0x14], ecx
and eax, 0xff
mov dword [ebp - 0x18], eax
mov eax, edx
and al, 0xff
xor ecx, ecx
mov cl, al
movzx eax, dx
sar eax, 8
mov dword [ebp - 0x1c], ecx
shr edx, 0x10
and al, 0xff
xor ecx, ecx
and dl, 0xff
mov cl, al
and edx, 0xff
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
push edi
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
push esi
push ebx
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.GDI32.DLL_SelectObject
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
cmp esi, ebx
jl 0x4096b9
mov esi, ebx
sar esi, 1
jns 0x4096c0
adc esi, 0
mov dword [ebp - 0x38], esi
fild dword [ebp - 0x38]
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004d2d7c
add esp, 8
call fcn.004d3010
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jle 0x40977a
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
imul ebx
cdq
idiv esi
mov ecx, eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
add cl, byte [ebp - 0x10]
imul ebx
cdq
idiv esi
add al, byte [ebp - 0x14]
and ecx, 0xff
and eax, 0xff
movzx edx, ax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
shl edx, 8
or ecx, edx
imul ebx
cdq
idiv esi
add al, byte [ebp - 0x18]
and eax, 0xff
shl eax, 0x10
or ecx, eax
push ecx
call sub.GDI32.DLL_CreateSolidBrush
mov edi, eax
push edi
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
push edi
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 4]
push ecx
call sub.USER32.DLL_FillRect
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.GDI32.DLL_SelectObject
push edi
call sub.GDI32.DLL_DeleteObject
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
push ecx
call sub.USER32.DLL_InflateRect
inc ebx
cmp esi, ebx
jg 0x4096e5
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_CreatePatternBrush
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov edx, dword [ebp - 8]
push edx
call sub.GDI32.DLL_DeleteObject
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410fac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0
push 0
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov ebx, eax
test ebx, ebx
je 0x41100a
test esi, esi
je 0x410fd2
push esi
call fcn.00411084
pop ecx
inc eax
add ebx, eax
push ebx
call fcn.004699b8
pop ecx
mov edi, eax
push ebx
push edi
call sub.KERNEL32.DLL_GetSystemDirectoryA
test esi, esi
je 0x411004
mov eax, ebx
dec eax
push eax
push 0x593e69
push edi
call fcn.00411048
add esp, 0xc
dec ebx
push ebx
push esi
push edi
call fcn.00411048
add esp, 0xc
mov eax, edi
jmp 0x411011
push esi
call fcn.00411018
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4110f0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, eax
and eax, 0xff
and edi, 0xff00
mov dword [ebp - 8], eax
shr edi, 8
mov byte [ebx], 0
mov eax, edi
mov esi, edi
mov edx, edi
and esi, 4
and edx, 1
and eax, 2
test eax, eax
mov dword [ebp - 4], edx
je 0x411132
mov eax, str.Ctrl_
jmp 0x411137
mov eax, 0x593e73
push eax
push ebx
call fcn.004cc6e0
add esp, 8
cmp dword [ebp - 4], 0
je 0x41114e
mov edx, str.Shift_
jmp 0x411153
mov edx, 0x593e73
push edx
push ebx
call fcn.004cc6e0
add esp, 8
test esi, esi
je 0x411168
mov eax, str.Alt_
jmp 0x41116d
mov eax, 0x593e73
push eax
push ebx
call fcn.004cc6e0
add esp, 8
push 0
mov edx, dword [ebp - 8]
push edx
call sub.USER32.DLL_MapVirtualKeyA
test edi, 8
mov esi, eax
je 0x411197
shl esi, 0x10
or esi, 0x3000000
jmp 0x4111a0
shl esi, 0x10
or esi, 0x2000000
push 0x64
push ebx
call fcn.004cc770
pop ecx
add ebx, eax
push ebx
push esi
call sub.USER32.DLL_GetKeyNameTextA
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4115c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test eax, eax
je 0x4115dc
test ebx, ebx
jne 0x4115e0
xor eax, eax
jmp 0x411649
push eax
call fcn.004b6620
pop ecx
mov edi, eax
push ebx
call fcn.004b6620
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
push edi
call fcn.00469a8c
pop ecx
mov eax, dword [ebp - 4]
push eax
call fcn.00469a8c
pop ecx
test ebx, ebx
jne 0x411619
xor eax, eax
jmp 0x411649
push ebx
push esi
call sub.KERNEL32.DLL_SizeofResource
mov edi, eax
push ebx
push esi
call sub.KERNEL32.DLL_LoadResource
test eax, eax
jne 0x411631
xor eax, eax
jmp 0x411649
push eax
call sub.KERNEL32.DLL_LockResource
test eax, eax
jne 0x41163f
xor eax, eax
jmp 0x411649
push edi
push eax
call fcn.00411650
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x416f84
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x416f9f
xor eax, eax
jmp 0x416ffb
cmp dword [esp + 4], 5
jb 0x416ff9
cmp dword [esp + 4], 5
jne 0x416fb8
cmp dword [esp + 8], 0
jne 0x416fb8
xor eax, eax
jmp 0x416ffb
cmp dword [esp + 4], 5
jne 0x416ff2
cmp dword [esp + 8], 1
jne 0x416ff2
push str.Service_Pack
lea edx, [esp + 0x18]
push edx
call fcn.004cc930
add esp, 8
push str.Service_Pack_1
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jl 0x416fee
mov eax, 1
jmp 0x416ffb
xor eax, eax
jmp 0x416ffb
mov eax, 1
jmp 0x416ffb
xor eax, eax
add esp, 0x94
ret
Function at 0x421d54
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov ebx, 0x59511c
mov esi, str.Gdiplus.dll
mov edi, esi
push esi
push edi
mov esi, 0x595124
lea edi, [esp + 8]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp dword [ebx], 0
jne 0x421d87
push edi
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebx], eax
mov edi, dword [ebx]
test edi, edi
jne 0x421d97
mov eax, 0x12
jmp 0x421f21
lea edx, [esi + 0xc]
push edx
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5950ec], eax
test eax, eax
jne 0x421db4
mov eax, 6
jmp 0x421f21
lea edx, [esi + 0x1b]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5950f0], eax
test eax, eax
jne 0x421dd3
mov eax, 6
jmp 0x421f21
lea edx, [esi + 0x2b]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5950f4], eax
test eax, eax
jne 0x421df2
mov eax, 6
jmp 0x421f21
lea edx, [esi + 0x44]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5950f8], eax
test eax, eax
jne 0x421e11
mov eax, 6
jmp 0x421f21
lea edx, [esi + 0x61]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5950fc], eax
test eax, eax
jne 0x421e30
mov eax, 6
jmp 0x421f21
lea edx, [esi + 0x7c]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x595100], eax
test eax, eax
jne 0x421e4f
mov eax, 6
jmp 0x421f21
lea edx, [esi + 0x98]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x595104], eax
test eax, eax
jne 0x421e71
mov eax, 6
jmp 0x421f21
lea edx, [esi + 0xa9]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x595108], eax
test eax, eax
jne 0x421e93
mov eax, 6
jmp 0x421f21
lea edx, [esi + 0xc2]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x59510c], eax
test eax, eax
jne 0x421eb2
mov eax, 6
jmp 0x421f21
lea edx, [esi + 0xd7]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x595114], eax
test eax, eax
jne 0x421ed1
mov eax, 6
jmp 0x421f21
lea edx, [esi + 0xf3]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x595118], eax
test eax, eax
jne 0x421ef0
mov eax, 6
jmp 0x421f21
lea edx, [esi + 0x107]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x595110], eax
test eax, eax
jne 0x421f0f
mov eax, 6
jmp 0x421f21
push 0
lea edx, [esp + 4]
push edx
push 0x595120
call dword [0x5950ec]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x423468
Capabilities:
Generate random numbers via winapi

Disassembly:
add esp, 0xffffffe0
cmp dword [0x59a3f8], 0
jne 0x42349e
push 0xf0000040
push 1
push 0
push 0
push 0x6079f4
call sub.ADVAPI32.DLL_CryptAcquireContextW
test eax, eax
jne 0x42349e
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x80090016
je 0x42349e
or eax, 0xffffffff
jmp 0x4234e2
mov dword [0x59a3f8], 1
push esp
push 0x20
mov edx, dword [0x6079f4]
push edx
call sub.ADVAPI32.DLL_CryptGenRandom
test eax, eax
jne 0x4234c0
or eax, 0xffffffff
jmp 0x4234e2
push 0x20
lea edx, [esp + 4]
push edx
call fcn.0042340c
add esp, 8
push 0x20
push 0
lea ecx, [esp + 8]
push ecx
call fcn.004cc638
add esp, 0xc
xor eax, eax
add esp, 0x20
ret

Function at 0x42347d
Capabilities:
Generate random numbers via winapi

Disassembly:
add esp, 0xffffffe0
cmp dword [0x59a3f8], 0
jne 0x42349e
push 0xf0000040
push 1
push 0
push 0
push 0x6079f4
call sub.ADVAPI32.DLL_CryptAcquireContextW
test eax, eax
jne 0x42349e
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x80090016
je 0x42349e
or eax, 0xffffffff
jmp 0x4234e2
mov dword [0x59a3f8], 1
push esp
push 0x20
mov edx, dword [0x6079f4]
push edx
call sub.ADVAPI32.DLL_CryptGenRandom
test eax, eax
jne 0x4234c0
or eax, 0xffffffff
jmp 0x4234e2
push 0x20
lea edx, [esp + 4]
push edx
call fcn.0042340c
add esp, 8
push 0x20
push 0
lea ecx, [esp + 8]
push ecx
call fcn.004cc638
add esp, 0xc
xor eax, eax
add esp, 0x20
ret
Function at 0x43053c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf0
mov ebx, esp
xor esi, esi
mov ebp, 0x108
push ebx
push ebp
call sub.KERNEL32.DLL_GetCurrentDirectoryW
mov edi, eax
cmp ebp, edi
jae 0x430574
mov ebp, edi
mov eax, ebp
add eax, eax
push eax
call fcn.004699b8
pop ecx
mov ebx, eax
push ebx
push ebp
call sub.KERNEL32.DLL_GetCurrentDirectoryW
mov edi, eax
push 0
test edi, edi
setne al
and eax, 1
push eax
call fcn.00432bb8
add esp, 8
cmp edi, 2
jb 0x4305c2
cmp ebp, edi
jbe 0x4305c2
cmp word [ebx + 2], 0x3a
jne 0x4305c2
mov ax, word [ebx]
cmp ax, 0x61
jb 0x4305ae
cmp ax, 0x7a
ja 0x4305ae
movzx esi, word [ebx]
sub esi, 0x20
jmp 0x4305b1
movzx esi, word [ebx]
cmp esi, 0x41
jl 0x4305c0
cmp esi, 0x5a
jg 0x4305c0
sub esi, 0x41
jmp 0x4305c2
xor esi, esi
mov eax, esp
cmp ebx, eax
je 0x4305cf
push ebx
call fcn.00469a8c
pop ecx
mov eax, esi
add esp, 0x210
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4305dc
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov eax, dword [ebp + 8]
test eax, eax
jl 0x43062f
cmp eax, 0x19
jg 0x43062f
add ax, 0x41
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov esi, eax
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
test eax, eax
push esi
setne bl
and ebx, 1
call sub.KERNEL32.DLL_SetErrorMode
push 0
push ebx
call fcn.00432bb8
add esp, 8
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4309ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0044b780
mov eax, dword [ebp + 8]
push eax
call fcn.004307b0
mov edi, eax
pop ecx
xor eax, eax
lea edx, [ebp - 4]
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0
push edx
push edi
call sub.KERNEL32.DLL_GetNamedPipeHandleStateW
test eax, eax
je 0x430afe
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004b1bb4
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
xor esi, esi
test byte [ebp - 4], 1
jne 0x430a5a
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0
push 0
push edx
push edi
call sub.KERNEL32.DLL_SetNamedPipeHandleState
xor ebx, ebx
test esi, esi
je 0x430a65
call fcn.0043dd00
mov esi, dword [ebp + 0x10]
sub esi, ebx
cmp esi, 0x1000
jbe 0x430a77
mov esi, 0x1000
push 0
lea eax, [ebp - 0x14]
push eax
push esi
mov edx, dword [ebp + 0xc]
add edx, ebx
push edx
push edi
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne cl
and ecx, 1
mov esi, ecx
test esi, esi
je 0x430a9d
add ebx, dword [ebp - 0x14]
jmp 0x430aa4
test ebx, ebx
jne 0x430aa4
or ebx, 0xffffffff
push 0
push esi
call fcn.00432bb8
add esp, 8
test esi, esi
je 0x430ae8
cmp ebx, dword [ebp + 0x10]
jae 0x430ae8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004b1bd4
add esp, 0xc
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], edx
cmp edx, 0
jne 0x430ad8
cmp eax, 0
je 0x430ae8
call fcn.00455a10
test ax, ax
je 0x430a5c
test byte [ebp - 4], 1
jne 0x430b0d
push 0
lea ecx, [ebp - 4]
push 0
push ecx
push edi
call sub.KERNEL32.DLL_SetNamedPipeHandleState
jmp 0x430b0d
push 0
push 0
call fcn.00432bb8
add esp, 8
or ebx, 0xffffffff
call fcn.0044b77c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0044b780
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
call fcn.004325e4
pop ecx
mov esi, eax
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x430f1e
push edi
call fcn.004b1c60
pop ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov ebx, 1
push 0
push ebx
call fcn.00432bb8
add esp, 8
test esi, esi
je 0x430f34
push esi
call fcn.00469a8c
pop ecx
call fcn.0044b77c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret