joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41abf4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f5b0
push 0x42f5a8
push str.FlsAlloc
push 0x1f
call fcn.0041aab3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ac28
push dword [ebp + 8]
mov ecx, esi
call dword [0x427190]
call esi
jmp 0x41ac2e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ac72
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f5c0
push 0x42f5b8
push str.FlsGetValue
push 0x21
call fcn.0041aab3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41aca9
push dword [ebp + 8]
mov ecx, esi
call dword [0x427190]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41acb1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f5c8
push 0x42f5c0
push str.FlsSetValue
push 0x22
call fcn.0041aab3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41aceb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x427190]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41b92b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x436020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x41b96e
call fcn.00413a8e
mov dword [eax], 0xf
call fcn.00413aa1
mov dword [eax], 0xd
call fcn.00417187
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409bfe
leave
ret
test eax, eax
jne 0x41b975
inc eax
jmp 0x41b962
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x41b960
xor eax, eax
cmp ecx, 1
setne al
jmp 0x41b962

Function at 0x41ca49
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c564
Function at 0x41d3c4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x436020]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41d40f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041d55f
test al, al
jne 0x41d409
sub edx, 2
cmp edx, edi
jne 0x41d3ef
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41d431
lea eax, [edi + 2]
cmp edx, eax
je 0x41d431
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041d310
add esp, 0x10
jmp 0x41d52b
push esi
lea ecx, [ebp - 0x255]
call fcn.0041d55f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d474
push dword [ebp - 0x25c]
jmp 0x41d421
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41d4b1
cmp word [ebp - 0x226], 0
je 0x41d4d2
cmp word [ebp - 0x226], ax
jne 0x41d4b1
cmp word [ebp - 0x224], 0
je 0x41d4d2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041d310
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41d51e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41d48b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41d506
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41d52b
push 0x41d140
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00422ac0
add esp, 0x10
jmp 0x41d4fb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409bfe
leave
ret
Function at 0x41de37
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ded4
push ebx
push esi
call fcn.0041de00
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041ba56
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41de81
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ded3
push edi
push eax
call fcn.004199e1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41dea1
call fcn.004171cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ded2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ba56
add esp, 0x20
test eax, eax
jne 0x41dec0
push edi
call fcn.004171cb
jmp 0x41dec8
push ebx
call fcn.004171cb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41ded7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41dee8
pop esi
ret
push ebx
push edi
push esi
call fcn.0041de00
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004199e1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41df10
push ebx
push esi
push edi
call fcn.0040a870
add esp, 0xc
push 0
call fcn.004171cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x423e75
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00423df1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x423fe4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x423fe4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x423f99
jg 0x423ed1
test eax, eax
je 0x423f8f
push 1
push 0x1000
call fcn.0041a923
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423ef4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x423f86
push 0x8000
push ebx
call fcn.004134ab
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x423f1d
jg 0x423f18
cmp ecx, 0x1000
jb 0x423f1d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00419446
add esp, 0x10
cmp eax, 0xffffffff
je 0x423f62
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x423f18
jl 0x423f49
test ecx, ecx
jne 0x423f0a
push dword [ebp - 0xc]
push ebx
call fcn.004134ab
push esi
call fcn.004171cb
add esp, 0xc
xor ebx, ebx
jmp 0x423ff2
cmp byte [edi + 0x24], 0
je 0x423f79
cmp dword [edi + 0x20], 5
jne 0x423f79
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423f84
mov ebx, dword [edi + 0x18]
jmp 0x423f86
xor ebx, ebx
push esi
call fcn.004171cb
pop ecx
jmp 0x423ff2
test ecx, ecx
jg 0x423f5b
jl 0x423f99
test eax, eax
jae 0x423f5b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041890a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x423fb9
cmp byte [edi + 0x1c], 0
je 0x423f5b
jmp 0x423fea
push ebx
call fcn.00414819
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x423f5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x423ff2
cmp byte [edi + 0x1c], 0
je 0x423fef
mov ebx, dword [edi + 0x18]
jmp 0x423ff2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041890a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425c60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425c8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425c8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40ebb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x640410], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x64040c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x640410], eax
cmp ecx, 0x26f
jl 0x40ebc0
mov dword [0x598fe0], 0x270
ret

Function at 0x40ec00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x63f010]
cmp eax, dword [0x598780]
je 0x40ec18
mov dword [0x598fe0], 0x271
cmp dword [0x598fe0], 0x270
jl 0x40ed37
cmp dword [0x598fe0], 0x271
jne 0x40ec4f
mov eax, dword [0x63f010]
call fcn.0040ebb0
mov eax, dword [0x63f010]
not eax
mov dword [0x63f010], eax
mov dword [0x598780], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x640414]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x640410]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x640a44]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x598ff0]
xor edx, eax
mov dword [ebx*4 + 0x640410], edx
cmp ebx, 0xe2
jl 0x40ec58
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x640414]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x640410]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x640084]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x598ff0]
xor edx, eax
mov dword [ebx*4 + 0x640410], edx
cmp ebx, 0x26e
jl 0x40ecac
mov eax, dword [0x640dcc]
and eax, 0x80000000
mov edx, dword [0x640410]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x640a40]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x598ff0]
xor eax, edx
mov dword [0x640dcc], eax
mov dword [0x598fe0], 0
mov eax, dword [0x598fe0]
mov eax, dword [eax*4 + 0x640410]
add dword [0x598fe0], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x4107d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x598490]
cmp ax, 0xcb
je 0x4108cc
cmp ax, 0xcc
je 0x4108cc
mov edx, dword [0x641020]
test edx, edx
je 0x410802
mov eax, dword [0x640ec0]
call edx
mov ebx, eax
jmp 0x410807
mov ebx, 0x640ec4
cmp word [0x640eb0], 0
jle 0x41082a
mov eax, 0x640e90
call fcn.00410a80
mov eax, ebx
call fcn.004103b0
mov eax, ebx
call fcn.00410420
mov edi, dword [ebx]
jmp 0x41084a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x410845
mov edx, edi
mov eax, ebx
call fcn.0040f880
jmp 0x410848
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x410830
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x640eb0], 0
jle 0x4108cc
mov edx, 0x640dd0
mov eax, ebx
call fcn.0040f9b0
mov edi, eax
test edi, edi
je 0x41089f
mov eax, dword [0x640e64]
mov dword [edi + 0xc], eax
cmp dword [0x640e64], 0
je 0x410894
mov eax, dword [0x640e64]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x640e64], eax
sub word [0x640eb0], 1
cmp word [0x640eb0], 0
sete bl
mov eax, 0x640e90
call fcn.00410a90
test bl, bl
je 0x4108cc
mov eax, 0x640e90
call fcn.00410a70
pop edi
pop esi
pop ebx
ret
Function at 0x412620
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 0xc], 0
mov eax, 1
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.0040db40
call fcn.0040f650
push eax
test eax, eax
jne 0x41279b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, esi
test esi, esi
jne 0x412664
mov eax, 0x6402e0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
lea edx, [ebx - 1]
lea eax, [ebp - 0xc]
call fcn.0040baf0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412687
mov eax, 0x6402e0
push eax
push ebx
mov eax, esi
test esi, esi
jne 0x412694
mov eax, 0x6402e0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edx, eax
test edx, edx
je 0x412753
jmp 0x4126ab
sub edx, 1
cmp edx, 3
jbe 0x4126bc
mov eax, dword [ebp - 0xc]
cmp word [eax + edx*2 - 2], 0x5c
je 0x4126a8
mov eax, ebx
mov edi, 0
sub eax, 1
sbb edi, 0
mov ecx, edx
mov ebx, 0
cmp edi, ebx
jne 0x4126d8
cmp eax, ecx
je 0x4126e0
lea eax, [ebp - 0xc]
call fcn.0040baf0
mov eax, sub.kernel32.dll_SetCurrentDirectoryW
mov edx, dword [ebp - 0xc]
call fcn.00412560
mov edx, dword [0x641020]
test edx, edx
je 0x412700
mov eax, dword [0x640150]
call edx
jmp 0x412705
mov eax, 0x640154
cmp word [eax], 0
jne 0x41275f
mov eax, esi
test esi, esi
je 0x412715
mov eax, dword [eax - 4]
cmp eax, 2
jle 0x41275f
cmp word [esi + 2], 0x3a
jne 0x41275f
mov word [ebp - 8], 0x3d
mov ax, word [esi]
mov word [ebp - 6], ax
mov word [ebp - 4], 0x3a
mov word [ebp - 2], 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412747
mov eax, 0x6402e0
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
jmp 0x41275f
mov eax, sub.kernel32.dll_SetCurrentDirectoryW
mov edx, esi
call fcn.00412560
mov edx, dword [0x641020]
test edx, edx
je 0x412772
mov eax, dword [0x640150]
call edx
jmp 0x412777
mov eax, 0x640154
cmp word [eax], 2
jne 0x41279b
mov edx, dword [0x641020]
test edx, edx
je 0x412791
mov eax, dword [0x640150]
call edx
jmp 0x412796
mov eax, 0x640154
mov word [eax], 3
call fcn.0040ddc0
lea eax, [ebp - 0xc]
call fcn.0040b200
pop eax
test eax, eax
je 0x4127b2
call fcn.0040def0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4127c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x44]
push ebx
push esi
push edi
mov bl, al
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.0040db40
call fcn.0040f650
push eax
test eax, eax
jne 0x412947
test bl, bl
je 0x4128fb
movzx eax, bl
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edi, eax
lea edx, [edi - 1]
mov eax, dword [ebp - 0x44]
call fcn.0040baf0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
test edx, edx
jne 0x412856
mov edx, 0x6402e0
push edx
push edi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
jne 0x4128b2
call sub.kernel32.dll_GetLastError
call fcn.00402ea0
lea eax, [ebp - 0x3c]
call fcn.0040a750
movzx eax, bl
sub eax, 0xffffffc0
lea edx, [ebp - 0x40]
call fcn.0040abe0
mov edx, dword [ebp - 0x40]
mov ecx, 0x5a32d4
lea eax, [ebp - 0x3c]
call fcn.0040aa50
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.0040b420
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
call fcn.0040b4b0
jmp 0x412947
mov ecx, edi
mov ebx, 0
sub ecx, 1
sbb ebx, 0
mov eax, esi
mov edx, 0
cmp ebx, edx
jne 0x4128ce
cmp ecx, eax
je 0x4128d8
mov eax, dword [ebp - 0x44]
mov edx, esi
call fcn.0040baf0
cmp byte [0x598720], 0
jne 0x412947
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
lea edx, [ebp - 0x38]
call fcn.0040bc40
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
call fcn.0040b4b0
jmp 0x412947
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
lea edx, [edi - 1]
mov eax, dword [ebp - 0x44]
call fcn.0040baf0
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
test eax, eax
jne 0x41291f
mov eax, 0x6402e0
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x598720], 0
jne 0x412947
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
lea edx, [ebp - 0x38]
call fcn.0040bc40
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
call fcn.0040b4b0
call fcn.0040ddc0
lea eax, [ebp - 0x40]
call fcn.0040a750
lea eax, [ebp - 0x3c]
call fcn.0040a750
lea eax, [ebp - 0x38]
call fcn.0040b200
pop eax
test eax, eax
je 0x41296e
call fcn.0040def0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412ce0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x640250], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.00412ec0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x640250]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403790
call sub.kernel32.dll_GetCommandLineA
mov dword [0x598510], eax
mov esi, dword [0x598510]
jmp 0x412e80
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x412d70
cmp byte [esi], 0
je 0x412e89
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x412de5
mov al, byte [esi]
cmp al, 1
jb 0x412ddb
sub al, 0x20
jbe 0x412dac
sub al, 2
je 0x412dbf
jmp 0x412ddb
mov al, byte [ebp - 0x10c]
test al, al
je 0x412dea
add dword [ebp - 0x110], 1
jmp 0x412de2
cmp byte [esi + 1], 0x22
je 0x412dd6
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x412de2
add esi, 1
jmp 0x412de2
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x412d9c
test dword [ebp - 0x114], 0xffffffff
je 0x412e79
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.00412ec0
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x640250]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x412e71
mov al, byte [esi]
cmp al, 1
jb 0x412e67
sub al, 0x20
jbe 0x412e38
sub al, 2
je 0x412e4b
jmp 0x412e67
mov al, byte [ebp - 0x10c]
test al, al
je 0x412e76
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x412e6e
cmp byte [esi + 1], 0x22
je 0x412e62
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x412e6e
add esi, 1
jmp 0x412e6e
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x412e28
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x412d73
mov ebx, dword [ebp - 0x114]
mov dword [0x640240], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x640250
call fcn.00410630
mov eax, dword [0x640250]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44e710
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x50]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409020
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov eax, 1
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.0040db40
call fcn.0040f650
push eax
test eax, eax
jne 0x44e86a
mov byte [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x44e768
jmp 0x44e76d
jmp 0x44e86a
cmp dword [0x641f30], 2
je 0x44e77b
jmp 0x44e82d
mov edx, dword [ebp - 4]
mov al, 0x20
call fcn.00409f70
cmp eax, 0
jg 0x44e78c
jmp 0x44e7be
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
mov ecx, 7
mov edx, 1
call fcn.00409e40
mov eax, dword [ebp - 0x40]
mov edx, 0x5d4000
call fcn.00482a40
test eax, 0xffffffff
je 0x44e7b8
jmp 0x44e7be
mov byte [ebp - 0x14], 1
jmp 0x44e7c2
mov byte [ebp - 0x14], 0
cmp byte [ebp - 0x14], 0
jne 0x44e7ca
jmp 0x44e7f2
push 0
mov eax, 0x5d3e84
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
mov eax, 0x5d3e84
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x4c]
lea eax, [ebp - 4]
mov ecx, 2
call fcn.004093c0
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0040c7f0
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0xc]
call fcn.0040b3f0
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x44e81a
mov eax, 0x6402e0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta byte [ebp - 8]
jmp 0x44e86a
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0040c7f0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x10]
mov dx, 0
call fcn.0040b310
push 1
push 0
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x44e859
mov eax, 0x6402e0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta byte [ebp - 8]
call fcn.0040ddc0
lea eax, [ebp - 0x50]
call fcn.0040b200
lea eax, [ebp - 0x40]
call fcn.00403e80
lea eax, [ebp - 0xc]
call fcn.0040a750
lea eax, [ebp - 0x10]
call fcn.00403e80
lea eax, [ebp - 4]
call fcn.00403e80
pop eax
test eax, eax
je 0x44e8a1
call fcn.0040def0
mov al, byte [ebp - 8]
leave
ret
Function at 0x477290
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov dword [eax + 0xc], 0xffffffff
push dword [eax + 4]
call sub.kernel32.dll_SuspendThread
leave
ret

Function at 0x4772b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push dword [ebx + 4]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x4772ca
mov dword [ebx + 0xc], 0
pop ebx
leave
ret
Function at 0x48c3f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x48c3fc
mov eax, 0x6402e0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x48c40f
and eax, 0x10
sete al
jmp 0x48c411
mov al, 0
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x48c42c
mov eax, 0x6402e0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x48c43f
and eax, 0x10
seta al
jmp 0x48c441
mov al, 0
leave
ret

Function at 0x48c730
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x48c73c
mov eax, 0x6402e0
push eax
call sub.kernel32.dll_GetFileAttributesW
leave
ret

Function at 0x48c750
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x48c75e
mov eax, 0x6402e0
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x48c76f
mov ebx, 0
jmp 0x48c776
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret

Function at 0x48cdd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
push esi
mov dword [ebp - 0x38], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.0040db40
call fcn.0040f650
push eax
test eax, eax
jne 0x48ce94
mov ebx, 1
sub ebx, 1
mov esi, esi
add ebx, 1
lea eax, [ebx*4 + 0x64206c]
mov edx, 0
call fcn.00409050
mov dword [ebx*4 + 0x64208c], 0xffffffff
cmp ebx, 7
jl 0x48ce08
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x48ce94
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
mov cx, 0
mov edx, 0xa
call fcn.00409a10
mov eax, dword [ebp - 0x38]
mov edx, 1
call fcn.004832d0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x48ce94
push 4
push ebx
push esi
mov eax, 0x48cc90
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x48cd30
push eax
call sub.kernel32.dll_EnumCalendarInfoA
call fcn.0040ddc0
lea eax, [ebp - 0x38]
call fcn.00403e80
pop eax
test eax, eax
je 0x48ceab
call fcn.0040def0
pop esi
pop ebx
leave
ret
Function at 0x4d3ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov ecx, eax
mov eax, 0
lea ebx, [ecx + 1]
movzx edx, byte [ecx]
add edx, 1
and edx, 0xff
lea edx, [ecx + edx]
jmp 0x4d3ef1
mov ecx, eax
shl ecx, 5
sub ecx, eax
movzx esi, byte [ebx]
xor esi, ecx
mov eax, esi
add ebx, 1
cmp ebx, edx
jb 0x4d3ee0
pop esi
pop ebx
ret