joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eff00
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, eax
mov ecx, esi
mov byte [esp + 9], 0
xor ebx, ebx
call fcn.004ecae0
test al, al
je 0x4eff83
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004ecbf0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov ax, word [edx]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xe]
mov word [esp + 0xe], ax
call fcn.0047f280
movzx ecx, word [eax]
mov edx, dword [esp + 0x10]
sub ecx, 0x41
mov esi, 1
shl esi, cl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4eff6f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0047fb60
add esp, 4
test ebx, esi
je 0x4f0079
mov ebx, 0x14
mov al, 1
jmp 0x4f003e
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004ed130
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], str._UNC
call fcn.00481380
test al, al
je 0x4f001c
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xc]
mov ax, word [edx]
push 1
mov word [esp + 0x14], ax
mov ecx, dword [esp + 0x14]
push 7
push ecx
lea ecx, [esp + 0x18]
call fcn.004811a0
test eax, eax
jle 0x4f0001
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0xc]
mov dx, word [ecx]
push 1
inc eax
push eax
mov word [esp + 0x18], dx
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.004811a0
test eax, eax
jle 0x4f0001
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 8]
dec edx
cmp eax, edx
jne 0x4f001c
lea eax, [esp + 0xc]
push eax
call fcn.004efd20
add esp, 4
test al, al
je 0x4f001c
mov ebx, 0x10
mov byte [esp + 9], 1
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4f0036
mov eax, dword [esp + 0xc]
push eax
call fcn.0047fb60
add esp, 4
mov al, byte [esp + 9]
test al, al
je 0x4f007d
mov dword [edi + 0x10], ebx
test bl, 2
je 0x4f004d
or dword [edi + 4], 0x100000
and bl, 0x10
movzx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, 0x20000
add ecx, 0x20000
or dword [edi + 4], ecx
or dword [edi + 4], 0x400000
or dword [edi], 0x560000
pop esi
pop ebx
add esp, 0xc
ret
mov al, byte [esp + 9]
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4fdb4a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6531f0]
jne 0x4fdb54
repz ret
jmp fcn.0050bd14

Function at 0x506cff
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x506d30
call fcn.00502984
mov dword [eax], esi
call fcn.00502971
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004fe81d
add esp, 0x14
or eax, 0xffffffff
jmp 0x506d6b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x506d4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00502997
pop ecx
jmp 0x506d2b
test byte [ebp + 0xc], 0x80
je 0x506d58
and eax, 0xfffffffe
jmp 0x506d5b
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x506d3e
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x506d9f
call fcn.00502984
mov dword [eax], esi
call fcn.00502971
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004fe81d
add esp, 0x14
push 0x16
pop eax
jmp 0x506df4
test dword [ebp + 0xc], 0xfffffff9
jne 0x506d7b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x506dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00502997
pop ecx
call fcn.00502971
mov eax, dword [eax]
jmp 0x506df4
test al, 0x10
jne 0x506df2
test al, 1
je 0x506df2
test byte [ebp + 0xc], 2
je 0x506df2
call fcn.00502984
mov dword [eax], 5
call fcn.00502971
mov dword [eax], 0xd
jmp 0x506dc3
xor eax, eax
pop esi
pop ebp
ret
Function at 0x51b81f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0050be8c
and dword [ebp - 4], 0
cmp dword [0x66aa08], 0
mov ebx, eax
jne 0x51b8d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51b981
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x51b981
push eax
call fcn.0050be1a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x66aa08], eax
call esi
push eax
call fcn.0050be1a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x66aa0c], eax
call esi
push eax
call fcn.0050be1a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x66aa10], eax
call esi
push eax
call fcn.0050be1a
pop ecx
mov dword [0x66aa18], eax
test eax, eax
je 0x51b8d0
push 0x624cb8
push edi
call esi
push eax
call fcn.0050be1a
pop ecx
mov dword [0x66aa14], eax
mov eax, dword [0x66aa14]
cmp eax, ebx
je 0x51b928
cmp dword [0x66aa18], ebx
je 0x51b928
push eax
call fcn.0050be95
push dword [0x66aa18]
mov esi, eax
call fcn.0050be95
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51b928
test edi, edi
je 0x51b928
call esi
test eax, eax
je 0x51b91f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51b91f
test byte [ebp - 0xc], 1
jne 0x51b928
or dword [ebp + 0x10], 0x200000
jmp 0x51b961
mov eax, dword [0x66aa0c]
cmp eax, ebx
je 0x51b961
push eax
call fcn.0050be95
pop ecx
test eax, eax
je 0x51b961
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51b961
mov eax, dword [0x66aa10]
cmp eax, ebx
je 0x51b961
push eax
call fcn.0050be95
pop ecx
test eax, eax
je 0x51b961
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x66aa08]
call fcn.0050be95
pop ecx
test eax, eax
je 0x51b981
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51b983
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5302e5
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x530309
push esi
movzx ecx, cl
movzx ecx, byte [ecx + 0x627ec0]
mov esi, eax
shl esi, 3
xor ecx, esi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x5302ee
pop esi
ret
Function at 0x53c277
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
test ebx, ebx
jne 0x53c286
xor eax, eax
leave
ret
push esi
mov esi, dword [ebp + 8]
push 0
push 8
call fcn.00537815
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x53c351
test byte [ebp + 0xc], 1
mov eax, dword [ebx]
mov dword [ecx], eax
jne 0x53c2bb
mov ecx, dword [ebx]
xor eax, eax
inc eax
cmp ecx, eax
jle 0x53c2bb
add eax, eax
cmp eax, ecx
jl 0x53c2b5
imul eax, eax, 0x18
push edi
push 0
push eax
call fcn.00537815
mov edx, dword [ebp - 8]
mov edi, eax
pop ecx
pop ecx
mov dword [edx + 4], edi
test edi, edi
jne 0x53c2e0
mov ecx, esi
call fcn.0052f3fc
xor eax, eax
jmp 0x53c350
and dword [ebp - 4], 0
cmp dword [ebx], 0
mov esi, dword [ebx + 4]
jle 0x53c34d
mov eax, dword [esi]
push 0
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00545460
mov dword [edi], eax
push dword [esi + 4]
push dword [ebp + 8]
call fcn.00537974
mov dword [edi + 4], eax
push dword [esi + 8]
push dword [ebp + 8]
call fcn.00537974
mov dword [edi + 8], eax
mov al, byte [esi + 0xc]
and dword [edi + 0x10], 0xfffffffe
mov byte [edi + 0xc], al
mov eax, dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [edi + 0x10], ecx
mov eax, dword [esi + 0x14]
add esp, 0x20
inc dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 4]
add edi, 0x18
add esi, 0x18
cmp eax, dword [ebx]
jl 0x53c2ec
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x5637d9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp byte [edi + 0x49], 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
jne 0x563804
mov eax, dword [edi + 0x44]
jmp 0x56398f
mov ecx, dword [edi + 0x3c]
push edi
call fcn.00563091
pop ecx
cmp eax, ebx
jne 0x56398f
cmp dword [edi + 0x10], ebx
jne 0x56385b
push ebx
push dword [ebp + 0x10]
mov eax, esi
push dword [ebp + 0xc]
call fcn.00532990
add esp, 0xc
test byte [edi + 0x48], 2
je 0x56385b
cmp dword [ebp + 0x10], ebx
jl 0x56385b
jg 0x56383e
cmp dword [ebp + 0xc], ebx
jbe 0x56385b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0x18]
sub eax, 1
sbb ecx, ebx
cmp edx, eax
jne 0x56385b
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jne 0x56385b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], ebx
jne 0x563881
push dword [ebp + 0x20]
lea ecx, [ebp - 4]
push dword [ebp + 0x10]
mov esi, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005630c9
add esp, 0x10
cmp eax, ebx
jne 0x56398f
movsx eax, word [edi + 0x4c]
mov esi, dword [edi + eax*4 + 0x78]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
mov eax, esi
call fcn.0055bdf5
add esp, 0x20
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x56398f
movsx eax, word [edi + 0x4c]
lea eax, [edi + eax*2 + 0x4e]
movzx ecx, word [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 4], ebx
jne 0x563936
mov eax, dword [esi + 0x44]
call fcn.0054d1eb
cmp eax, ebx
jne 0x56398f
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
lea ecx, [eax + ecx*2]
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
movzx ecx, word [esi + 0x14]
and eax, ecx
add eax, dword [esi + 0x38]
cmp byte [esi + 5], bl
jne 0x56390b
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov dword [edx], ecx
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
call fcn.0055bcd5
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.005407aa
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, ebx
jne 0x56398f
jmp 0x56394d
jge 0x56394d
cmp word [esi + 0x12], bx
jbe 0x56394d
inc word [eax]
movsx eax, word [edi + 0x4c]
movzx eax, word [edi + eax*2 + 0x4e]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push ebx
push ebx
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x14]
call fcn.0054d6af
xor eax, eax
mov word [edi + 0x2c], ax
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, ebx
jne 0x56398f
cmp byte [esi + 1], bl
je 0x56398f
and byte [edi + 0x48], 0xfd
call fcn.0055ff63
movsx ecx, word [edi + 0x4c]
mov ecx, dword [edi + ecx*4 + 0x78]
mov byte [ecx + 1], bl
mov byte [edi + 0x49], bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x563994
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi]
movsx ebx, word [edi + 0x4c]
mov ecx, dword [edi + ebx*4 + 0x78]
mov dx, word [edi + ebx*2 + 0x4e]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
xor eax, eax
inc eax
mov dword [ebp - 0x1c], ebx
cmp dx, word [ecx + 0x12]
jae 0x563b65
cmp byte [edi + 0x49], al
jne 0x563b65
mov esi, ecx
mov ecx, dword [esi + 0x40]
movzx eax, dx
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
movzx ecx, word [esi + 0x14]
and eax, ecx
add eax, dword [esi + 0x38]
cmp byte [esi + 5], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
jne 0x563a19
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push edi
call fcn.0056378e
pop ecx
pop ecx
test eax, eax
jne 0x563b65
mov ecx, dword [edi + 0x3c]
mov eax, dword [ebp - 0xc]
push edi
call fcn.00563091
pop ecx
test eax, eax
jne 0x563b65
cmp dword [edi + 0x10], eax
jne 0x563a45
push eax
push dword [edi + 0x1c]
mov eax, dword [ebp - 4]
push dword [edi + 0x18]
call fcn.00532990
add esp, 0xc
mov eax, dword [esi + 0x44]
call fcn.0054d1eb
test eax, eax
jne 0x563b65
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, esi
call fcn.0055bcd5
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0x10]
call fcn.005407aa
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
jne 0x563b65
cmp byte [esi + 5], al
jne 0x563b21
movsx eax, word [edi + 0x4c]
mov esi, dword [edi + eax*4 + 0x78]
mov eax, dword [edi + ebx*4 + 0x7c]
mov eax, dword [eax + 0x48]
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x14], eax
movzx eax, word [esi + 0x12]
lea eax, [ecx + eax*2]
movzx ebx, byte [eax - 2]
movzx eax, byte [eax - 1]
shl ebx, 8
or ebx, eax
movzx eax, word [esi + 0x14]
and ebx, eax
add ebx, dword [esi + 0x38]
mov edx, esi
push ebx
call fcn.00532b35
movzx eax, ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x44]
call fcn.0054d1eb
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
push dword [ebp - 0xc]
add eax, 4
push eax
mov eax, dword [ebp - 0x10]
add ebx, 0xfffffffc
push ebx
call fcn.0054d6af
lea eax, [ebp - 8]
push eax
movzx eax, word [esi + 0x12]
push dword [ebp - 4]
dec eax
push eax
call fcn.005407aa
mov eax, dword [ebp - 8]
add esp, 0x24
test eax, eax
jne 0x563b65
mov ebx, dword [ebp - 0x1c]
call fcn.0055ff63
mov esi, eax
test esi, esi
jne 0x563b63
movsx eax, word [edi + 0x4c]
cmp eax, ebx
jle 0x563b5c
movzx ecx, word [edi + 0x4c]
movsx eax, cx
mov eax, dword [edi + eax*4 + 0x78]
dec ecx
mov word [edi + 0x4c], cx
call fcn.0055a593
movsx eax, word [edi + 0x4c]
cmp eax, ebx
jg 0x563b34
call fcn.0055ff63
mov esi, eax
test esi, esi
jne 0x563b63
mov eax, edi
call fcn.0055ef02
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4017e9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x84
lea edx, [ebp - 0x3c]
mov eax, 0
mov ecx, 0xa
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
jmp 0x40184d
mov dword [esp], 0xa
call sym._malloc
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax*4 + 0x408020], edx
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x408020]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x406082
mov dword [esp], eax
call sym._sprintf
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x1f3
jle 0x40180d
mov dword [ebp - 0x38], sym._WndProc_16
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], str.SimpleApp
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sym._RegisterClassA_4
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x2c], 0
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x64
mov dword [esp + 0x18], 0x1c2
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], str.Basit_GUI_Uygulamasi
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._UpdateWindow_4
sub esp, 4
jmp 0x401921
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym._TranslateMessage_4
sub esp, 4
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym._DispatchMessageA_4
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym._GetMessageA_16
sub esp, 0x10
test eax, eax
jne 0x401905
mov dword [ebp - 0x10], 0
jmp 0x40196a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax*4 + 0x408020]
mov dword [esp], eax
call sym._free
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0x1f3
jle 0x401954
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 4]
leave
ret 0x10
Function at 0x401fc0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408824
call sym._EnterCriticalSection_4
mov ebx, dword [0x40881c]
sub esp, 4
test ebx, ebx
je 0x40200b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402004
test esi, esi
je 0x402004
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fe0
mov dword [esp], 0x408824
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4021f0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402240
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402318
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40227e
cmp eax, 4
jne 0x4022a0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40228e
cmp edx, 4
je 0x40228e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004021f0
Function at 0x404130
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x404166
jmp 0x40419e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404163
cmp al, 9
je 0x404163
cmp al, 0x22
jne 0x404187
jmp 0x4041e6
cmp al, 9
je 0x404193
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x404180
jmp 0x404193
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404190
cmp al, 9
je 0x404190
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x4041ad
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x4041f2
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x4041e2
cmp al, 0x22
jne 0x404193
lea ebx, [edx + 2]
jmp 0x404193
Function at 0x401018
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x104
mov eax, dword [0x41c380]
push esi
push edi
mov esi, ecx
mov dword [ebp + 0x80], eax
push 0x3f
xor eax, eax
cmp dword [esi], 0
mov byte [ebp - 0x80], 0
pop ecx
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x4010c5
push dword [ebp + 0x8c]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edi
test eax, eax
mov dword [esi], eax
jne 0x4010b2
push 0xff
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x401095
lea eax, [ebp - 0x80]
push eax
call fcn.0040c7b0
cmp byte [ebp + eax - 0x81], 0x5c
pop ecx
je 0x401095
lea eax, [ebp - 0x80]
push 0x417354
push eax
call fcn.0040c6c0
pop ecx
pop ecx
push dword [ebp + 0x8c]
lea eax, [ebp - 0x80]
push eax
call fcn.0040c6c0
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
mov dword [esi], eax
je 0x4010c5
push str.MSUK_GetCommonFunctionList
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esi + 4]
push ecx
call eax
mov ecx, dword [ebp + 0x80]
xor eax, eax
cmp dword [esi + 4], eax
pop edi
setne al
pop esi
call fcn.0040c86c
add ebp, 0x84
leave
ret 4
Function at 0x4010e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x41c380]
push ebx
push edi
push str.Crypt32.dll
mov dword [ebp + 0x3b8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x54], ebx
jne 0x401120
xor eax, eax
jmp 0x4012b7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4173d4
push ebx
call esi
push 0x4173bc
push ebx
mov dword [ebp - 0x58], eax
call esi
push 0x4173a0
push dword [ebp - 0x54]
mov ebx, eax
call esi
push 0x417380
push dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
call esi
push str.CertAddCertificateContextToStore
push dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
call esi
cmp dword [ebp - 0x58], edi
mov dword [ebp - 0x60], eax
je 0x4012ab
cmp ebx, edi
je 0x4012ab
cmp dword [ebp - 0x50], edi
je 0x4012ab
cmp dword [ebp - 0x4c], edi
je 0x4012ab
cmp eax, edi
je 0x4012ab
push 0x417358
push edi
call ebx
cmp eax, edi
mov dword [ebp - 0x5c], eax
je 0x4012ab
push dword [ebp + 0x3c8]
push dword [ebp + 0x3c4]
push 0x10001
call dword [ebp - 0x4c]
cmp eax, edi
mov dword [ebp - 0x64], eax
jne 0x4011c5
push edi
call dword [ebp - 0x50]
jmp 0x4012ab
push dword [ebp + 0x3d0]
call fcn.0040c7b0
mov esi, eax
mov dword [esp], 0x200
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0040c880
add esp, 0xc
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x48]
push eax
push esi
push dword [ebp + 0x3d0]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push edi
call esi
push dword [ebp + 0x3d4]
call fcn.0040c7b0
mov dword [ebp - 0x4c], eax
mov dword [esp], 0x200
lea eax, [ebp + 0x1b8]
push edi
push eax
call fcn.0040c880
add esp, 0xc
push ebx
lea eax, [ebp + 0x1b8]
push eax
push dword [ebp - 0x4c]
xor ebx, ebx
push dword [ebp + 0x3d4]
inc ebx
push ebx
push edi
call esi
push 0x1c
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0040c880
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x1b8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x3cc]
add esp, 0xc
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x80]
push eax
push edi
push 2
push esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x401294
push esi
call dword [ebp - 0x50]
push edi
push dword [ebp - 0x5c]
call dword [ebp - 0x58]
jmp 0x4012ab
push edi
push 3
push esi
push dword [ebp - 0x5c]
call dword [ebp - 0x60]
push esi
call dword [ebp - 0x50]
push edi
push dword [ebp - 0x5c]
call dword [ebp - 0x58]
mov edi, ebx
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop esi
mov ecx, dword [ebp + 0x3b8]
pop edi
pop ebx
call fcn.0040c86c
add ebp, 0x3bc
leave
ret