joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x4474fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x44750a
pop dword [ebp - 0xc]
mov eax, 0x577e15c5
add eax, 0xa8c65f45
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x4f198
push 0
mov eax, 0xf967fd2c
sub eax, 0xf9234a7c
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x438f
mov edi, eax
mov ebx, 0x8e438f26
add ebx, 0x7204feda
add ebx, dword [ebp - 0xc]
mov edx, 0x591cbe57
sub edx, 0x1d6a8a1b
xor dword [ebp - 8], edi
mov esi, dword [ebx]
xor dword [ebp - 8], edx
sub esi, edx
xor dword [ebp - 8], eax
mov dword [edi], esi
mov dword [ebp - 8], 0x5534b473
add edi, 0x1116e6e1
add edi, 0xeee91923
add ebx, 0xc3abc8b9
sub ebx, 0xc3abc8b5
loop 0x447563
add eax, 0x1010f
xor ebx, ebx
add ebx, eax
add eax, 0xcb44438f
add eax, 0x34bbbc76
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4014d0
Capabilities:
Download url
Receive data

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
jne 0x40150d
cmp dword [esp + 0x20], ebx
jne 0x40150d
cmp dword [esp + 0x24], ebx
jne 0x40150d
cmp ebp, ebx
jne 0x40150d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push eax
push ecx
push ebx
call sub.urlmon.dll_URLDownloadToFileA
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
push 0x24
call fcn.0041a954
add esp, 4
cmp eax, ebx
je 0x401547
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [eax], 0x428580
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebp
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 4], 1
mov dword [eax + 0x20], ebx
jmp 0x401549
xor eax, eax
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x401557
mov edi, 0x8007000e
jmp 0x401598
lea ebp, [esi + 8]
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateBindCtx]
mov edi, eax
cmp edi, ebx
jl 0x401598
mov edx, dword [esi + 0xc]
mov eax, dword [ebp]
push ebx
push ebx
push edx
push eax
call sub.urlmon.dll_RegisterBindStatusCallback
mov edi, eax
cmp edi, ebx
jl 0x401598
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push ebx
push edx
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
mov edi, eax
cmp edi, ebx
jge 0x4015c8
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4015a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4015b8
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4015c8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 4], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x401790
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 0x4017a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4017bd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4017de
cmp esi, eax
jae 0x4017b7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4017d0
cmp esi, eax
jae 0x4017b7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402ff0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
xor eax, eax
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x40305b
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
add esp, 0x54
ret

Function at 0x403140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00401da0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401ae0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4031d2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4049a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4049fb
call fcn.004240e0
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4049fb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4049f1
xor eax, eax
jmp 0x404b14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x404a2b
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x404a2b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x404b11
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x404a58
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004045a1
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x404b11
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404aa1
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x404aa1
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x404a9b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004045a1
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x404b01
and dword [ebp + 0xc], 0
jmp 0x404b01
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x404b01
push 0xc
call fcn.0041a954
mov esi, eax
test esi, esi
pop ecx
je 0x404ae3
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x404ae5
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x404afc
push dword [ebp - 8]
call fcn.0041a427
jmp 0x404b01
call fcn.0041a3fe
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x404a66
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40da72
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040dd60
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40db0d
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x437074]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40db0d
cmp eax, 1
je 0x40db2e
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40db0d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40dada
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40db09
xor eax, eax
inc eax
jmp 0x40db4d
cmp edi, eax
jae 0x40db11
xor eax, eax
jmp 0x40db4d
cmp eax, esi
jae 0x40db18
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x437074]
jmp 0x40db31
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e9a6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42b138
call fcn.0040fac4
mov edi, 0x94
mov eax, edi
call fcn.0040dd60
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x437074], ecx
mov eax, dword [esi + 4]
mov dword [0x437080], eax
mov edx, dword [esi + 8]
mov dword [0x437084], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x437078], esi
cmp ecx, 2
je 0x40ea06
or esi, 0x8000
mov dword [0x437078], esi
shl eax, 8
add eax, edx
mov dword [0x43707c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40ea41
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ea41
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40ea59
cmp eax, 0x20b
je 0x40ea46
mov dword [ebp - 0x1c], esi
jmp 0x40ea6d
cmp dword [ecx + 0x84], 0xe
jbe 0x40ea41
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40ea67
cmp dword [ecx + 0x74], 0xe
jbe 0x40ea41
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00410be7
pop ecx
test eax, eax
jne 0x40ea81
push 0x1c
call fcn.0040e982
pop ecx
call fcn.00412427
test eax, eax
jne 0x40ea92
push 0x10
call fcn.0040e982
pop ecx
call fcn.00413fc7
mov dword [ebp - 4], esi
call fcn.00413dc9
test eax, eax
jge 0x40eaab
push 0x1b
call fcn.0040e95d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x438930], eax
call fcn.00413ca7
mov dword [0x437064], eax
call fcn.00413c05
test eax, eax
jge 0x40ead1
push 8
call fcn.0040e95d
pop ecx
call fcn.004139d2
test eax, eax
jge 0x40eae2
push 9
call fcn.0040e95d
pop ecx
push 1
call fcn.0040f12a
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40eaf8
push eax
call fcn.0040e95d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00413975
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40eb19
movzx eax, word [ebp - 0x40]
jmp 0x40eb1c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00419fb4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40eb3a
push edi
call fcn.0040f257
call fcn.0040f279
jmp 0x40eb6c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040faff
ret
Function at 0x40f194
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42b1a8
call fcn.0040fac4
push 8
call fcn.00410b9c
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4370b4], esi
jne 0x40f1c8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4370b0], esi
mov al, byte [ebp + 0x10]
mov byte [0x4370ac], al
cmp dword [ebp + 0xc], edi
jne 0x40f212
cmp dword [0x438928], edi
je 0x40f202
mov eax, dword [0x438924]
sub eax, 4
mov dword [0x438924], eax
cmp eax, dword [0x438928]
jb 0x40f202
mov eax, dword [eax]
cmp eax, edi
je 0x40f1e3
call eax
jmp 0x40f1e3
push 0x433094
mov eax, 0x43308c
call fcn.0040f112
pop ecx
push 0x4330a0
mov eax, 0x433098
call fcn.0040f112
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f243
cmp dword [ebp + 0x10], edi
jne 0x40f251
mov dword [0x4370b4], esi
push dword [ebp + 8]
call fcn.0040f0d0
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f250
push 8
call fcn.00410ae7
pop ecx
ret
call fcn.0040faff
ret
Function at 0x411776
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 0x4117a4
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 0x4117ab
cmp ebx, dword [eax + 4]
jae 0x4117ab
xor eax, eax
jmp 0x41199b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4117bc
xor eax, eax
inc eax
jmp 0x41199a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4117d2
cmp ecx, edx
jae 0x411917
cmp dword [eax + 4], 0
je 0x4117db
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4117c3
cmp dword [ebp + 8], 0
je 0x4117fd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x411917
cmp eax, esi
jae 0x411917
mov eax, dword [0x437220]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x411822
cmp dword [esi*4 + 0x437228], edi
je 0x41191b
inc esi
cmp esi, eax
jl 0x411810
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411997
cmp dword [ebp - 8], 0x1000000
jne 0x411997
test byte [ebp - 0xc], 0xcc
je 0x4118a0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x411997
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x411997
cmp word [eax + 0x18], 0x10b
jne 0x411997
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x411997
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4118a0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4118a0
test byte [ecx + 0x27], 0x80
jne 0x411917
push 1
push 0x437268
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4117b4
mov ecx, dword [0x437220]
test ecx, ecx
mov edx, ecx
jle 0x4118d4
lea eax, [ecx*4 + 0x437224]
cmp dword [eax], edi
je 0x4118d4
dec edx
sub eax, 4
test edx, edx
jg 0x4118c8
test edx, edx
jne 0x411905
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4118e1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4118f9
lea eax, [edx*4 + 0x437228]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4118e7
cmp ecx, 0x10
jge 0x411905
inc ecx
mov dword [0x437220], ecx
push 0
push 0x437268
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4117b4
xor eax, eax
jmp 0x41199a
test esi, esi
jle 0x4117b4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x437268
call ebx
test eax, eax
jne 0x4117b4
cmp dword [esi*4 + 0x437228], edi
je 0x411971
mov eax, dword [0x437220]
lea esi, [eax - 1]
test esi, esi
jl 0x41195f
cmp dword [esi*4 + 0x437228], edi
je 0x41195b
dec esi
jns 0x41194f
test esi, esi
jge 0x41196f
cmp eax, 0x10
jge 0x41196a
inc eax
mov dword [0x437220], eax
lea esi, [eax - 1]
jmp 0x411971
je 0x411989
xor ecx, ecx
test esi, esi
jl 0x411989
lea eax, [ecx*4 + 0x437228]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x411977
push 0
push 0x437268
call ebx
jmp 0x4117b4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413661
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x434140]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4346c0]
je 0x413696
inc eax
cmp eax, 0x13
jb 0x413687
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4346c0]
jne 0x4137bc
mov eax, dword [0x43706c]
cmp eax, 1
je 0x413794
cmp eax, edx
jne 0x4136c6
cmp dword [0x434134], 1
je 0x413794
cmp ecx, 0xfc
je 0x4137bc
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4136fc
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00415000
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040ef60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x413730
mov eax, edi
push eax
call fcn.0040ef60
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b8f8
push edi
call fcn.00416cf0
add esp, 0x10
push edi
call fcn.0040ef60
push dword [esi + 0x4346c4]
mov ebx, eax
call fcn.0040ef60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040dd60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00415000
push edi
push ebx
call fcn.00415010
push 0x42b8d8
push ebx
call fcn.00415010
push dword [esi + 0x4346c4]
push ebx
call fcn.00415010
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00417402
add esp, 0x2c
jmp 0x4137bc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4346c4]
push dword [esi]
call fcn.0040ef60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040eeee
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x415b22
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x415b50
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x415b55
cmp eax, 1
je 0x415b55
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x415b59
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x434140]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x415bd1
push ebx
call fcn.00415b22
test eax, eax
pop ecx
jne 0x415ba0
call fcn.00410912
mov dword [eax], 0xf
call fcn.00410909
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0040eeee
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x415be3
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x415b93
inc eax
cmp eax, 0x104
ja 0x415b93
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x415c1b
cmp eax, dword [ebp + 0x10]
jg 0x415bfe
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040d9ef
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x415c30
call fcn.00410909
mov dword [eax], 0xc
jmp 0x415b93
cmp eax, dword [ebp + 0x10]
jle 0x415c30
call fcn.00410909
mov dword [eax], 0x22
jmp 0x415b93
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00415000
pop ecx
pop ecx
jmp 0x415b95
Function at 0x416f33
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x434140]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x416f64
xor eax, eax
jmp 0x4170ed
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4385c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x416fa0
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004181cd
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41707b
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4170b9
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x417004
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x416ff5
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x416fd5
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417044
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41704d
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x416fc6
jmp 0x41704f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4170e8
cmp dword [ebp - 0x6c], edi
je 0x4170b9
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4170ae
call fcn.00410909
mov dword [eax], 9
call fcn.00410912
mov dword [eax], esi
jmp 0x4170e3
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4170a3
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41704f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41704f
push dword [ebp - 0x6c]
call fcn.0041091b
pop ecx
jmp 0x4170e3
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4170d1
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4170d1
xor eax, eax
jmp 0x4170eb
call fcn.00410909
mov dword [eax], 0x1c
call fcn.00410912
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4170eb
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040eeee
add ebp, 0x3a0
leave
ret