joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4484ed
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4668e8]
jne 0x4484f7
repz ret
jmp fcn.004514bc

Function at 0x4515c2
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.004485d7
and dword [ebp - 4], 0
cmp dword [0x4755fc], 0
mov ebx, eax
jne 0x451673
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x451724
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45b8c0
push edi
call esi
test eax, eax
je 0x451724
push eax
call fcn.00448565
mov dword [esp], 0x45b8b0
push edi
mov dword [0x4755fc], eax
call esi
push eax
call fcn.00448565
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x475600], eax
call esi
push eax
call fcn.00448565
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x475604], eax
call esi
push eax
call fcn.00448565
pop ecx
mov dword [0x47560c], eax
test eax, eax
je 0x451673
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00448565
pop ecx
mov dword [0x475608], eax
mov eax, dword [0x475608]
cmp eax, ebx
je 0x4516cb
cmp dword [0x47560c], ebx
je 0x4516cb
push eax
call fcn.004485e0
push dword [0x47560c]
mov esi, eax
call fcn.004485e0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4516cb
test edi, edi
je 0x4516cb
call esi
test eax, eax
je 0x4516c2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4516c2
test byte [ebp - 0xc], 1
jne 0x4516cb
or dword [ebp + 0x10], 0x200000
jmp 0x451704
mov eax, dword [0x475600]
cmp eax, ebx
je 0x451704
push eax
call fcn.004485e0
pop ecx
test eax, eax
je 0x451704
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x451704
mov eax, dword [0x475604]
cmp eax, ebx
je 0x451704
push eax
call fcn.004485e0
pop ecx
test eax, eax
je 0x451704
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4755fc]
call fcn.004485e0
pop ecx
test eax, eax
je 0x451724
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x451726
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x458e18
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 0x458e49
call fcn.004477a0
mov dword [eax], esi
call fcn.0044778d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0044790d
add esp, 0x14
or eax, 0xffffffff
jmp 0x458e84
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x458e66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004477b3
pop ecx
jmp 0x458e44
test byte [ebp + 0xc], 0x80
je 0x458e71
and eax, 0xfffffffe
jmp 0x458e74
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x458e57
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401200
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x42e2e0], 0x24e1
mov eax, dword [0x42e2e0]
sub eax, 0x24e1
mov dword [0x42e2e0], eax
mov ecx, 1
test ecx, ecx
je 0x4012ab
mov edx, dword [0x42e2e0]
cmp edx, dword [ebp + 0xc]
jb 0x401237
jmp 0x4012ab
cmp dword [0x42e2e0], 0
jne 0x401255
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401255
xor eax, eax
jmp 0x4012ab
mov eax, dword [ebp + 8]
add eax, dword [0x42e2e0]
mov ecx, dword [eax]
add ecx, dword [0x42e2e0]
mov edx, dword [ebp + 8]
add edx, dword [0x42e2e0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x8ae
mov eax, dword [0x42e2e0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x42e2e0]
push eax
call fcn.004012b0
add esp, 8
mov ecx, dword [0x42e2e0]
add ecx, 4
mov dword [0x42e2e0], ecx
jmp 0x40121d
mov esp, ebp
pop ebp
ret
Function at 0x402dfb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x47fe00]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402e64
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004021d2
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00404a64
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x402e7c
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403cdf
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x402e2c
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040677c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403cdf
jmp 0x402e66

Function at 0x4053ff
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jg 0x40541f
jl 0x405416
test ebx, ebx
jne 0x40541f
xor eax, eax
xor edx, edx
jmp 0x4054e2
cmp dword [ebp + 0x38], 0
je 0x405435
push esi
push ebx
push dword [esp + 0x18]
call fcn.004054e8
jmp 0x4054e2
mov eax, dword [ebp + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x405479
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x405479
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00403f4c
mov eax, dword [ebp + 0x2c]
add edi, esi
mov dword [esp + 0x20], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x405481
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
je 0x4054d8
mov ecx, ebp
call fcn.00403bb6
mov ecx, dword [esp + 0x14]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x4054c3
push dword [ebp + 0x4c]
push eax
push 1
push ecx
call fcn.0040c09c
mov ecx, dword [esp + 0x24]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x4054d8
jmp 0x405494
test edx, edx
je 0x4054d8
push dword [ebp + 0x4c]
push edi
push 1
push ecx
call fcn.0040c09c
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4057b2
Capabilities:
Access peb ldr_data
Delete file
Get kernel32 base address
Get number of processors

Disassembly:
sub esp, 0xd0
mov eax, dword [0x47fe00]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x24
mov dword [esp + 0x14], ebx
call fcn.00406739
pop ecx
mov esi, eax
push 0x64
pop ebp
test esi, esi
je 0x405818
push str.Window1
lea ecx, [esp + 0xc8]
call fcn.004021d2
lea eax, [esp + 0xc4]
push eax
push ebp
push ecx
push ecx
mov dword [esp + 4], 0x40000000
mov ecx, esi
mov dword [esp], 0x40400000
call fcn.0040222b
mov esi, eax
inc ebx
jmp 0x40581a
mov esi, ebx
test bl, 1
je 0x40582b
lea ecx, [esp + 0xc4]
call fcn.00403cdf
test esi, esi
je 0x40584c
mov ecx, esi
call fcn.0040307d
test esi, esi
je 0x40584c
lea ecx, [esi + 0xc]
call fcn.00403cdf
push 0x24
push esi
call fcn.00406769
pop ecx
pop ecx
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x480d70], eax
push 0x27
push 0x47f820
push 0x547
mov edi, 0x47f848
push edi
call fcn.00402e9a
push 1
push 0x424458
call fcn.00405974
push 0x8aafdc01
push dword [0x480d70]
call fcn.00402dfb
add esp, 0x20
lea ecx, [esp + 0x14]
mov ebx, str.static.lib
mov esi, eax
push 1
push 0x40
push 2
push ebx
call fcn.0040201e
lea eax, [esp + 0x14]
push 0x424468
push eax
call fcn.004010ef
push eax
call fcn.00401dba
add esp, 0xc
sub ebp, 1
jne 0x4058b2
lea ecx, [esp + 0x14]
call fcn.00403f1c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x4e4
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x4058fb
call fcn.00404efa
lea ecx, [esp + 4]
call fcn.00402baa
mov ecx, dword [esp + 0xcc]
xor eax, eax
xor ecx, esp
call fcn.0040677c
add esp, 0xd0
ret 0x10

Function at 0x4074c6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407505
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407505
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407505
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407505
cmp dword [ecx + 0x74], 0xe
jbe 0x407505
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4154d7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4282f0
push 0x4282e8
push str.FlsAlloc
push 0x1e
call fcn.004153a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41550b
push dword [ebp + 8]
mov ecx, esi
call dword [0x424134]
call esi
jmp 0x415511
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415555
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428300
push 0x4282f8
push str.FlsGetValue
push 0x20
call fcn.004153a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41558c
push dword [ebp + 8]
mov ecx, esi
call dword [0x424134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x416c36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416aa7

Function at 0x417030
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407630
mov eax, dword [0x47fe00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415b0a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417072
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4171ce
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423400
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x481810]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418027
mov ecx, dword [esi*4 + 0x481810]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4171c7
cmp eax, dword [edi + ecx + 0x24]
jne 0x4171c7
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4171c7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418027
add esp, 0x14
test edx, edx
jl 0x4171c7
jg 0x41713d
test eax, eax
jb 0x4171c7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4171c7
jl 0x417157
cmp dword [ebp - 0x1008], eax
ja 0x4171c7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417175
test ebx, ebx
je 0x4171ae
cmp ecx, edi
jae 0x4171ae
mov al, byte [ecx]
cmp al, 0xd
jne 0x41718f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41719b
cmp byte [ecx + 1], 0xa
jne 0x41719b
inc ecx
jmp 0x41719b
movzx eax, al
movsx eax, byte [eax + 0x4800d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417175
cmp edx, ebx
jne 0x417175
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4171cc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040677c
leave
ret
Function at 0x4174c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x481810]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417505
cmp byte [ebx], 0xa
jne 0x417505
or byte [eax + edi + 0x28], 4
jmp 0x41750a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417608
mov al, byte [edx]
cmp al, 0x1a
je 0x4175ea
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417539
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41755e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417568
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41751b
jmp 0x417608
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4175e5
cmp dword [ebp - 0xc], 0
je 0x4175e5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481810]
test byte [eax + edi + 0x28], 0x48
je 0x4175bf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4175aa
mov byte [esi], dl
jmp 0x4175bb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481810]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417608
cmp byte [ebp - 1], 0xa
jne 0x4175ce
cmp esi, ebx
jne 0x4175ce
mov byte [esi], 0xa
jmp 0x417607
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418045
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417608
mov byte [esi], 0xd
jmp 0x417607
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481810]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417604
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417608
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417611
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x481810]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417654
cmp word [esi], dx
jne 0x417654
or byte [edi + eax + 0x28], 4
jmp 0x417659
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4177ac
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41778c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41769b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4176d1
cmp eax, edx
jae 0x4176dd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417673
jmp 0x4177ac
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417788
cmp dword [ebp - 0x14], 0
je 0x417788
mov eax, dword [ebx*4 + 0x481810]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417760
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417729
mov word [esi], cx
jmp 0x41775c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481810]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481810]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481810]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4177ac
pop ebx
cmp word [ebp - 4], bx
jne 0x417771
cmp esi, dword [ebp + 0xc]
jne 0x417771
mov word [esi], bx
jmp 0x4177a9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418045
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4177ac
push 0xd
jmp 0x4177a5
mov ecx, dword [ebx*4 + 0x481810]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4177a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4177ac
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40b70c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041e760
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp word [esi], 0
je 0x40b88d
push esi
call fcn.0040b8a1
push esi
call fcn.004233b3
pop ecx
push esi
mov edi, eax
call fcn.0040b8cc
test al, al
je 0x40b7c1
push esi
call fcn.0040b8a1
test al, al
je 0x40b77b
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x40b88d
push dword [ebp + 0x10]
push 0x4338ac
push dword [ebp + 0xc]
call fcn.00410162
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call fcn.0041013a
mov al, 1
jmp 0x40b88f
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40b88d
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x40b88d
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x40b88d
push esi
push 0x4338ac
push dword [ebp + 0xc]
call fcn.00410162
push esi
push 0x4338b8
push dword [ebp + 0xc]
call fcn.0041013a
push esi
push ebx
jmp 0x40b76c
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40b88d
cmp eax, ebx
ja 0x40b88d
movzx eax, word [esi]
push eax
call fcn.0040b9a6
test al, al
je 0x40b82c
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x40b88d
push edi
push 0x4338ac
push dword [ebp + 0xc]
call fcn.00410162
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.0041013a
push edi
jmp 0x40b76b
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040b299
lea eax, [ebp - 0x1000]
push eax
call fcn.004233b3
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x40b88d
push edi
push 0x4338ac
push dword [ebp + 0xc]
call fcn.00410162
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.0041013a
cmp word [esi], 0x2e
jne 0x40b826
movzx eax, word [esi + 2]
push eax
call fcn.0040b9a6
test al, al
je 0x40b826
add esi, 4
jmp 0x40b826
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x402788
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4027b7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040357c
jmp 0x4027d5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004026bc
mov edi, eax
test ebx, ebx
je 0x4027d5
cmp dword [esi], 0
je 0x4027d5
dec ebx
jmp 0x4027be
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402a28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ac0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402aa0
xor eax, eax
push ebp
push 0x402a99
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402adc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402aa0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x4044dc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404678
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40458c
xor eax, eax
push ebp
push 0x404585
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40456e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404698
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40458c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40466d
cmp byte [ebp - 0xd], 0
jne 0x4045ce
cmp byte [ebp - 0x12], 0
je 0x40466d
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4045e7
dec ebx
cmp byte [ebx], 0x2e
je 0x4045f6
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4045e6
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40466d
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404623
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40466d
cmp byte [ebp - 0xd], 0
je 0x40466d
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40466d
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4068a0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004038b4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4068c2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret