joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push ebx
push edi
push 1
call fcn.1001dbc5
mov edi, eax
mov eax, dword [esi + 0x20]
add esp, 4
push eax
mov dword [esp + 0x10], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
test eax, eax
jne 0x100027d6
push ebx
call fcn.1003afdc
mov dword [esp + 0x14], eax
add esp, 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x1c], edx
call fcn.1003b2f4
mov edi, eax
neg edi
sbb edi, edi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x48]
not edi
and edi, dword [esp + 0x78]
push eax
call fcn.1003b2f4
add esp, 0x10
test eax, eax
jne 0x100026ff
mov ecx, dword [esp + 0x4c]
inc ecx
mov dword [esp + 8], ecx
jmp 0x10002703
mov dword [esp + 8], ebx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.1003b2f4
add esp, 8
test eax, eax
jne 0x10002731
mov ecx, dword [esp + 0x98]
add ecx, 0x76c
cmp ecx, 0x76c
jge 0x1000273b
push 0x80004005
call fcn.10006d00
mov eax, dword [esp + 8]
dec eax
cmp eax, 0xb
jbe 0x1000274f
push 0x80004005
call fcn.10006d00
lea edx, [edi - 1]
cmp edx, 0x1e
jbe 0x10002761
push 0x80004005
call fcn.10006d00
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
add ecx, 0xfffff894
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], 0xffffffff
call fcn.1003b2e2
mov ecx, eax
and ecx, edx
add esp, 4
cmp ecx, 0xffffffff
jne 0x100027a7
push 0x80070057
call fcn.10006d00
mov edx, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], edx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
cmp eax, ebx
je 0x100027cb
push eax
call fcn.1001dbf4
add esp, 4
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x20]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
cmp ecx, ebx
je 0x1000283f
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
call fcn.1000e360
cmp eax, ebx
mov eax, dword [esp + 8]
je 0x1000283f
cmp eax, ebx
je 0x1000283f
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov edx, dword [eax]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x10]
push eax
mov dword [esi + 0x14], ecx
call fcn.1001dbf4
add esp, 4
cmp edi, ebx
je 0x100027cb
push edi
call fcn.1001dbf4
add esp, 4
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.1001dbf4
add esp, 4
cmp edi, ebx
je 0x10002855
push edi
call fcn.1001dbf4
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100063d0
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x1000b510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
cmp dword [esp + 0x28], 0
push ebx
push ebp
push edi
je 0x1000b65e
cmp dword [esi + 0x4e4], 3
jne 0x1000b572
mov ecx, dword [esi + 0x4e8]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
jne 0x1000b560
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetWindowRect_Error:__d
call fcn.1001aaf0
mov edx, dword [esi]
mov eax, dword [edx + 0x15c]
add esp, 8
mov ecx, esi
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
jmp 0x1000b5b4
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x1000b65e
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
jne 0x1000b5b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetWindowRect_Error:__d
call fcn.1001aaf0
mov eax, dword [esi]
mov edx, dword [eax + 0x15c]
add esp, 8
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
cmp dword [esi + 0x80], eax
jne 0x1000b5c9
mov ecx, dword [esi + 0x74]
cmp ecx, dword [esp + 0x10]
je 0x1000b65e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_MoveWindow]
mov dword [esi + 0x74], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], eax
mov ebx, eax
mov edi, 1
mov eax, dword [esi + 0x94]
push 1
push eax
mov eax, edi
cdq
idiv dword [esp + 0x3c]
mov ecx, dword [esi + 0x90]
push ecx
push ebx
mov ecx, esi
add eax, dword [esp + 0x20]
push eax
call fcn.1000ca20
push eax
call ebp
cmp edi, 1
jne 0x1000b64d
lea eax, [esi + 0x500]
test eax, eax
je 0x1000b62a
mov eax, dword [eax + 0x20]
mov edx, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
push 0
add edx, 2
push edx
add ecx, 2
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
inc edi
cmp edi, dword [esp + 0x34]
jg 0x1000b65e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000b5f1
pop edi
pop ebp
pop ebx
add esp, 0x24
ret 4

Function at 0x1000cbd0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x1000cb00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x1000e4e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x430
mov eax, dword [0x10070850]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x1000e5eb
test edi, edi
je 0x1000e5eb
lea ecx, [esp + 0x220]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1000e5eb
cmp eax, 0x104
jae 0x1000e5eb
lea eax, [esp + 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000e545
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x21e], 0x5c
je 0x1000e579
push 0x1005ec98
lea edx, [esp + 0x224]
push 0x104
push edx
call fcn.1003c283
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
push 0x1005ec9c
lea ecx, [esp + 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1000e5eb
lea esi, [esp + 0x10]
call fcn.10019b40
test eax, eax
je 0x1000e5eb
call fcn.10019ce0
test eax, eax
je 0x1000e5eb
push str.AdBoard.hc
mov edx, esi
push edx
push str._s_s
call fcn.1000f5d0
add esp, 0xc
mov eax, esi
push eax
mov ecx, ebx
call fcn.1000e650
test eax, eax
jne 0x1000e603
mov ecx, esi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1000e5eb
mov ecx, dword [esp + 0xc]
push 1
mov edx, esi
push edx
call fcn.1000e8b0
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.1003aa2d
mov esp, ebp
pop ebp
ret 4
mov ebx, edi
lea esi, [esp + 0x10]
call fcn.10019a60
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1000e629
push 1
mov ecx, esi
push ecx
mov ecx, dword [esp + 0x14]
call fcn.1000e8b0
mov ecx, dword [esp + 0x434]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1003aa2d
mov esp, ebp
pop ebp
ret 4
Function at 0x1000eb30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100547d6
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x10070850]
xor eax, esp
mov dword [esp + 0x440], eax
push esi
mov eax, dword [0x10070850]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [esp + 0x1c], eax
cmp edi, esi
je 0x1000ed41
cmp eax, esi
je 0x1000ed41
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x458], esi
call fcn.1001dc0a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x1000ebbb
push 0x80004005
call fcn.10006d00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x234]
push ecx
push 0x104
mov byte [esp + 0x460], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1000ed1d
cmp eax, 0x104
jae 0x1000ed1d
lea eax, [esp + 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000ec03
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x232], 0x5c
je 0x1000ec37
push 0x1005ec98
lea edx, [esp + 0x238]
push 0x104
push edx
call fcn.1003c283
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0
push 0x1005ec9c
lea ecx, [esp + 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1000ec63
lea ecx, [esp + 0xc]
call fcn.10006d70
jmp 0x1000ed41
lea esi, [esp + 0x24]
call fcn.10019b40
test eax, eax
je 0x1000ec55
call fcn.10019ce0
test eax, eax
je 0x1000ec55
mov edx, dword [esp + 0x20]
push str.BkzLib.dll
push edx
lea eax, [esp + 0x14]
push str._s_s
push eax
call fcn.10006ce0
mov eax, dword [esp + 0x1c]
add esp, 0x10
lea esi, [esp + 0x10]
call fcn.1000dbc0
mov ecx, esi
push ecx
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.1000dc00
test eax, eax
jg 0x1000ecdc
push 1
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.1000e8b0
lea ecx, [esp + 0xc]
call fcn.10006d70
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000ed41
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1000ed41
mov eax, dword [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.1001ae10
add esp, 0xc
push 1
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.1000e8b0
lea ecx, [esp + 0xc]
call fcn.10006d70
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000ed16
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x1000ed43
lea eax, [esi - 0x10]
mov byte [esp + 0x458], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ed41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.1003aa2d
mov esp, ebp
pop ebp
ret 8
Function at 0x1000f450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x100546a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10070850]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
call fcn.1001dc0a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1000f493
push 0x80004005
call fcn.10006d00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000f4ed
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000f4e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x1000f5af
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x1000f4c2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x34], eax
test eax, eax
je 0x1000f4c2
mov esi, dword [esp + 0x2c]
push 2
push 1
push 0x40000000
call fcn.1001a0b0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x1000f542
push ebx
call fcn.1001dbff
mov edi, eax
add esp, 4
test edi, edi
jne 0x1000f54f
call fcn.1001a1d0
lea ecx, [esp + 0x14]
call fcn.10006d70
xor eax, eax
jmp 0x1000f5af
mov ecx, dword [esp + 0x34]
push ebx
push ecx
push ebx
push edi
call fcn.1003ace8
add esp, 0x10
test eax, eax
je 0x1000f57e
call fcn.1001a1d0
push edi
call fcn.1001dbf4
add esp, 4
lea ecx, [esp + 0x14]
call fcn.10006d70
xor eax, eax
jmp 0x1000f5af
lea edx, [esp + 0x18]
push edx
push edi
push esi
mov eax, ebx
call fcn.1001a5f0
add esp, 0xc
test eax, eax
je 0x1000f563
call fcn.1001a1d0
push edi
call fcn.1001dbf4
add esp, 4
lea ecx, [esp + 0x14]
call fcn.10006d70
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x10012790
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.1003d0e6
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x100128f9
mov edx, dword [esi + 0x24]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov eax, esp
mov dword [eax], edx
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.100108b0
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0x10012899
xor edx, edx
dec ebx
cmp byte [esp + 0x13], dl
je 0x1001281d
cmp byte [edi], dl
jmp 0x10012821
cmp word [edi], 0
sete dl
test edx, edx
je 0x1001284b
test eax, eax
je 0x10012844
cmp edi, eax
je 0x10012844
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.1003c320
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebp
add edi, ecx
test ebx, ebx
jne 0x10012810
test eax, eax
je 0x1001286e
cmp edi, eax
je 0x1001286e
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.1003c320
add esp, 0xc
test ebp, ebp
je 0x10012899
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.100108b0
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x100128eb
test byte [esi + 4], 0x80
je 0x100128eb
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x100128c6
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0x100128b0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x28]
push eax
call fcn.100108b0
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.10012220
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x10012d80
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebp, ebp
jne 0x10012d9c
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x10012e16
test edx, edx
jne 0x10012dd5
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001dbff
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.10042d20
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10012df2
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x10012de0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.100108b0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.1003d265
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x10012e3b
push edi
call fcn.1001dbf4
add esp, 4
test bl, bl
je 0x10012e73
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, dword [esi + 0x24]
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.100108b0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.10012220
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x10013ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100535e3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10070850]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
mov edi, dword [esi + 0x30]
test edi, edi
je 0x10013f23
call fcn.10013620
push edi
call fcn.1001dbf4
add esp, 4
mov edi, dword [esi + 0x34]
test edi, edi
je 0x10013f3a
mov eax, edi
call fcn.10011560
push edi
call fcn.1001dbf4
add esp, 4
mov byte [esp + 0x14], 0
mov eax, dword [esi + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10013f5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10013f84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x100183c0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x100195e0
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
test eax, eax
je 0x10019624
push 0
push eax
call ebx
test eax, eax
je 0x10019617
mov ecx, dword [edi]
lea eax, [esp + 0xc]
push eax
push ecx
call ebp
mov edx, dword [esp + 0xc]
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [edi]
call fcn.1001a1d0
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1001965d
push 0
push eax
call ebx
test eax, eax
je 0x1001964e
mov edx, dword [edi + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
call ebp
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [edi + 4]
call fcn.1001a1d0
mov dword [edi + 4], 0
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100197e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, eax
cmp edi, 8
jae 0x100197f4
pop edi
xor eax, eax
pop ebp
pop ecx
ret
cmp dword [ebp + 4], edi
jne 0x100197ee
mov eax, dword [esp + 0x14]
push esi
push 0
push 0x14000
push eax
call fcn.1003e640
push 0
call fcn.10019750
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x10019826
pop esi
pop edi
mov eax, 1
pop ebp
pop ecx
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push esi
call ebx
test eax, eax
jne 0x1001987a
push 1
call fcn.10019750
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x100198bf
push 0
lea edx, [esp + 0x14]
push edx
push edi
push ebp
push esi
call ebx
test eax, eax
jne 0x1001987a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov dword [0x10074ca0], 1
mov eax, 2
pop ebp
pop ecx
ret
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x1c]
push eax
push 0x14000
push edi
push esi
call ebx
test eax, eax
jne 0x10019908
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x10019908
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push 1
call fcn.10019750
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x100198cf
pop ebx
pop esi
mov eax, 1
pop edi
mov dword [0x10074ca0], eax
pop ebp
pop ecx
ret
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x14000
push edi
push esi
call ebx
test eax, eax
jne 0x10019908
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x10019908
push esi
call ebp
pop ebx
pop esi
pop edi
mov dword [0x10074ca0], 1
mov eax, 2
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
pop ebx
pop esi
pop edi
mov dword [eax], edx
mov dword [0x10074ca0], 2
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x1001c580
Capabilities:
Initialize winhttp library

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, 3
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx]
dec ecx
cmp ecx, 3
ja case.default.0x1001c5bc
jmp dword [ecx*4 + 0x1001c644]
push 0
push 0
push 0
push 1
jmp 0x1001c5fe
push 0
push 0
push 0
push 0
jmp 0x1001c5fe
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x1001c621
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
jmp 0x1001c5fc
mov eax, dword [ebp + 0xc]
push 0
push 0
push eax
push 3
push edi
call esi
mov edx, dword [esp + 0x2c]
test eax, eax
jne 0x1001c633
test ebx, ebx
jle 0x1001c638
mov dword [edx], ebx
cmp ebx, dword [esp + 0x28]
jne 0x1001c61e
dec ebx
test ebx, ebx
jle 0x1001c638
mov dword [edx], ebx
jmp 0x1001c5b0
dec ebx
jmp 0x1001c5b0
mov dword [ebp + 4], 0x3e8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov ecx, dword [edx]
mov dword [ebp + 8], ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x1001dbf4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003beb6

Function at 0x1001fa93
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 0x1001fab7
cmp dword [edi + 0x54], 0
jne 0x1001fab7
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.1002a030
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.1001fa54
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 0x10025188
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 0x100251cf
call fcn.1002a030
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100251cf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x100251eb
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10024d00
mov esi, eax
test edi, edi
je 0x100251e9
test ebx, ebx
je 0x100251e9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4