joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414bf9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x490df0], 0
push ebx
push esi
push edi
mov esi, 0x490420
jne 0x414c1b
push 0
call fcn.00458943
pop ecx
call fcn.00414bba
mov dword [0x47b05c], 0x270
mov dword [0x49041c], esi
mov dword [ebp - 4], 0xe3
mov ecx, 0x7ffffffe
mov eax, 0x9908b0df
mov edx, dword [esi + 4]
mov ebx, dword [esi]
xor ebx, edx
and ebx, ecx
xor ebx, dword [esi]
and dl, 1
movzx edx, dl
shr ebx, 1
neg edx
sbb edx, edx
and edx, eax
xor ebx, edx
xor ebx, dword [esi + 0x634]
mov dword [esi], ebx
add esi, 4
dec dword [ebp - 4]
jne 0x414c3c
mov dword [ebp - 4], 0x18c
mov edx, dword [esi + 4]
mov ebx, dword [esi]
xor ebx, edx
and ebx, ecx
xor ebx, dword [esi]
and dl, 1
movzx edx, dl
shr ebx, 1
neg edx
sbb edx, edx
and edx, eax
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
add esi, 4
dec dword [ebp - 4]
jne 0x414c6e
mov edi, dword [esi]
mov edx, dword [0x490420]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
movzx ecx, dl
neg ecx
sbb ecx, ecx
and ecx, eax
xor edi, ecx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414cc4
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x47b05c]
jne 0x414cd1
call fcn.00414bf9
mov eax, dword [0x49041c]
mov ecx, dword [eax]
add dword [0x49041c], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x414d08
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [0x47b05c]
jne 0x414d19
call fcn.00414bf9
mov eax, dword [0x49041c]
mov eax, dword [eax]
add dword [0x49041c], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
jns 0x414d5d
fadd qword [0x475bc0]
fmul qword [0x475bd0]
leave
ret

Function at 0x414f0a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x414f2c
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00454ef0
add esp, 0xc
jmp 0x414f3f
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00458d94
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
add dword [esi + 0xc], 8
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ebp - 8]
push 0x470d74
push eax
mov byte [ebp - 4], 0
call fcn.00458dc0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x415018
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esi + 0x464]
mov eax, 0x10000
test ecx, ecx
je 0x41502b
cmp ecx, eax
jne 0x415046
push dword [esi + 0x1c]
push eax
push 1
push dword [esi + 0x45c]
call fcn.00458d94
add esp, 0x10
and dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov eax, dword [esi + 0x45c]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x464], ecx
ret

Function at 0x41505d
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x444]
push edi
je 0x415114
cmp eax, dword [esi + 0x43c]
jae 0x4150e0
mov edi, 0x10000
push ebx
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
mov ebx, dword [esi + 0x460]
mov edx, dword [esi + 0x458]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + ebx], al
inc dword [esi + 0x460]
cmp dword [esi + 0x460], edi
jne 0x4150c8
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x458]
call fcn.00458346
add esp, 0x10
and dword [esi + 0x460], 0
inc dword [esi + 0x444]
inc dword [esi + 8]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x41507c
pop ebx
and dword [esi + 0x440], 0
pop edi
ret
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
mov edi, dword [esi + 8]
mov edx, dword [esi]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + edi], al
inc dword [esi + 8]
inc dword [esi + 0x444]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x4150e9
jmp 0x4150e0
Function at 0x41511e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
push edi
mov dword [ebp - 8], eax
cmp dword [esi + 0x43c], eax
jae 0x415286
mov ebx, 0xff
push 1
mov eax, esi
call fcn.004152b7
cmp eax, 1
mov eax, esi
jne 0x41517c
push 8
call fcn.004152b7
mov ecx, dword [esi + 0x43c]
mov edx, dword [esi + 0x438]
and ecx, 0x1ffff
mov byte [ecx + edx], al
inc dword [esi + 0x43c]
inc dword [esi + 0x440]
jmp 0x415222
push 0xf
call fcn.004152b7
mov dword [ebp - 4], eax
push 2
mov eax, esi
xor edi, edi
call fcn.004152b7
cmp eax, 3
jne 0x4151dc
push eax
pop edi
push eax
mov eax, esi
call fcn.004152b7
cmp eax, 7
jne 0x4151dc
push 0xa
pop edi
push 5
mov eax, esi
call fcn.004152b7
cmp eax, 0x1f
jne 0x4151dc
push 0x29
pop edi
push 8
mov eax, esi
call fcn.004152b7
cmp eax, ebx
jne 0x4151dc
mov edi, 0x128
jmp 0x4151cf
add edi, ebx
push 8
mov eax, esi
call fcn.004152b7
cmp eax, ebx
je 0x4151cd
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x43c]
sub eax, dword [ebp - 4]
test edi, edi
je 0x415222
mov ebx, dword [esi + 0x43c]
mov ecx, dword [esi + 0x438]
mov edx, eax
and edx, 0x1ffff
mov dl, byte [edx + ecx]
and ebx, 0x1ffff
inc eax
mov byte [ebx + ecx], dl
inc dword [esi + 0x43c]
inc dword [esi + 0x440]
dec edi
jne 0x4151ed
mov ebx, 0xff
call fcn.0041505d
cmp dword [0x492410], 0x1000
jbe 0x415268
mov edi, dword [esi + 0x454]
and dword [0x492410], 0
test edi, edi
je 0x41526e
mov ecx, dword [esi + 8]
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esi + 0x10]
push eax
push ecx
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x41526e
mov byte [esi + 0x448], 1
jmp 0x41526e
inc dword [0x492410]
cmp byte [esi + 0x448], 0
jne 0x4152b2
mov eax, dword [ebp - 8]
cmp dword [esi + 0x43c], eax
jb 0x41513f
mov eax, dword [esi + 0x460]
test eax, eax
je 0x4152ab
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.00458346
add esp, 0x10
and dword [esi + 0x460], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 4
pop eax
jmp 0x4152ad

Function at 0x41534c
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00456fd0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x415d32
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
push 0x46df88
call fcn.0041016e
pop ecx
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.004576e0
push esi
call fcn.0045526c
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0041534c
lea eax, [esp + 0xa8]
push eax
call fcn.004575c0
pop ecx
mov ebx, eax
call fcn.0041534c
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.00415379
mov eax, esi
call fcn.0041540e
and dword [edi + 8], 0
push 0x10
xor ecx, ecx
xor eax, eax
pop ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
inc ecx
cmp ecx, ebx
jl 0x415da3
push 0x470d64
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.00458a52
pop ecx
pop ecx
mov dword [edi], eax
test eax, eax
jne 0x415dca
inc eax
jmp 0x415e26
mov esi, edi
call fcn.00415e2e
push dword [edi]
mov esi, eax
test esi, esi
je 0x415de2
call fcn.00458ad6
mov eax, esi
jmp 0x415e25
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00458d94
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.00415f29
xor ecx, ecx
mov dword [edi + 8], ecx
xor eax, eax
movzx edx, byte [esp + eax + 8]
imul ecx, edx
inc eax
cmp eax, ebx
jl 0x415e09
push dword [edi]
mov dword [edi + 8], ecx
call fcn.00459072
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415e2e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.004666e0
xor eax, eax
mov cl, byte [eax + 0x47b1a0]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x47b198]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x415e3d
push ebx
push edi
lea eax, [ebp - 8]
push 0x470d84
push eax
call fcn.004576e0
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00454ef0
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.00458d94
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp eax, 0x18
jl 0x415f24
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x415ed0
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x415ec0
inc edx
cmp edx, 0x14
jl 0x415eb1
cmp edx, 0x14
je 0x415ee4
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x415ea8
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.00459161
add esp, 0xc
jmp 0x415e7b
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.00459161
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.00458d94
lea eax, [ebp - 8]
push 0x470d74
push eax
mov byte [ebp - 4], 0
call fcn.00458dc0
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x415f20
Function at 0x415f29
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.00415b95
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.00415cd0
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x415f6e
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00415ca0
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x415f54
pop edi
pop esi
leave
ret 0xc
Function at 0x41633a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x690
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x47c]
call fcn.00414db9
push 0
push dword [esi + 4]
xor edi, edi
push dword [esi]
inc edi
mov dword [ebp - 0x10], edi
call fcn.00459161
add esp, 0xc
lea eax, [ebp - 0x68c]
push eax
push dword [ebp + 8]
call fcn.004164a8
test eax, eax
je 0x416383
push 6
pop eax
jmp 0x4164a1
push dword [esi]
lea eax, [ebp - 5]
push edi
push edi
push eax
call fcn.00458d94
push dword [esi]
lea eax, [ebp - 0xc]
push edi
push 4
push eax
call fcn.00458d94
push dword [esi]
mov edi, dword [ebp - 0xc]
push 1
lea eax, [ebp - 0xc]
push 4
mov ebx, 0x87bc
push eax
xor edi, ebx
call fcn.00458d94
push dword [esi]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
xor eax, ebx
push 1
mov dword [ecx], eax
lea eax, [ebp - 0xc]
push 4
push eax
call fcn.00458d94
mov ebx, dword [ebp - 0xc]
add esp, 0x40
push 1
push 0x10
push dword [esi]
xor ebx, 0xa685
call fcn.00459161
mov eax, dword [ebp + 0x10]
add esp, 0xc
push dword [eax]
call fcn.0045764b
pop ecx
push edi
mov dword [ebp + 0x10], eax
call fcn.0045764b
pop ecx
push dword [esi]
mov dword [ebp + 8], eax
push 1
push edi
push eax
call fcn.00458d94
mov eax, dword [esi + 8]
mov esi, dword [ebp + 8]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push esi
call fcn.00415f29
push edi
push esi
lea edi, [ebp - 0x10]
call fcn.00414d65
cmp ebx, dword [ebp - 0x10]
je 0x416449
push dword [ebp + 0x10]
call fcn.004577d8
pop ecx
push esi
call fcn.004577d8
pop ecx
push 0xa
jmp 0x41637d
cmp byte [ebp - 5], 1
jne 0x41648b
lea eax, [ebp - 0x47c]
call fcn.00414db9
xor eax, eax
inc eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x478], esi
call fcn.00414de9
push esi
call fcn.004577d8
jmp 0x416496
push dword [ebp + 0x10]
call fcn.004577d8
mov dword [ebp + 0x10], esi
mov eax, dword [ebp + 0xc]
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4164a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
and dword [ebp - 0xc], 0
push ebx
push edi
mov byte [ebp - 1], 1
push dword [esi]
lea eax, [ebp - 0x18]
push 4
push 1
push eax
call fcn.00458d94
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x18]
push eax
call fcn.00415f29
lea eax, [ebp - 0x18]
push 0x470da0
push eax
mov byte [ebp - 0x14], 0
call fcn.00458dc0
pop ecx
pop ecx
test eax, eax
jne 0x41661e
push dword [esi]
inc dword [ebp - 0xc]
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.00458d94
mov edi, dword [ebp - 0x10]
push dword [esi]
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.00458d94
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00415f29
xor eax, eax
mov word [ebp + ebx - 0x228], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.004555f7
push dword [esi]
lea eax, [ebp - 0x10]
push 1
push 4
push eax
call fcn.00458d94
mov edi, dword [ebp - 0x10]
push dword [esi]
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.00458d94
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00415f29
xor eax, eax
mov word [ebp + ebx - 0x228], ax
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
call fcn.004555f7
push dword [ebp + 8]
lea eax, [ebp - 0x438]
push eax
call fcn.004571cc
add esp, 0x10
test eax, eax
je 0x416635
push 0x470d94
push dword [ebp + 8]
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
jne 0x4165e6
cmp dword [ebp - 0xc], eax
je 0x416635
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.00459161
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.00458d94
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.00459161
add esp, 0x1c
jmp 0x416622
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x4164bb
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x41662f
Function at 0x4247ba
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi + 0xd0], bl
je 0x424811
cmp byte [ebp + 8], bl
je 0x424811
mov eax, dword [esi + 0xd4]
cmp eax, ebx
je 0x4247e4
push eax
call dword [0x46b304]
mov dword [esi + 0xd4], ebx
push ebx
push ebx
push 1
push ebx
call dword [0x46b298]
push esi
push ebx
push 0x4248c7
mov dword [esi + 0xd4], eax
call fcn.004592a4
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], ebx
sete al
pop ebx
pop ebp
ret 4
pop ebx
mov eax, esi
pop ebp
jmp fcn.004248d6

Function at 0x425087
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
mov esi, eax
cmp byte [esi + 0x30], 0
je 0x4250a6
push dword [ebp + 8]
call fcn.00425197
jmp 0x425192
mov eax, dword [esi + 0x34]
push 0x470d98
push eax
call fcn.00458a52
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4250e5
mov dword [esi + 0x18], 0x1f
call dword [0x46b300]
mov dword [esi + 0x1c], eax
mov esi, dword [esi + 0xd4]
test esi, esi
je 0x4250de
push esi
call dword [0x46b29c]
xor al, al
jmp 0x425192
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
call dword [0x46b720]
test eax, eax
je 0x425145
cmp dword [ebp - 8], 0
je 0x425134
push dword [ebp - 0x10]
lea eax, [ebp - 0x414]
push 1
push dword [ebp - 8]
push eax
call fcn.00458346
mov eax, dword [ebp - 8]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x4250ec
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x425172
mov dword [esi + 0x18], 0x21
jmp 0x42514c
mov dword [esi + 0x18], 0x20
call dword [0x46b300]
mov dword [esi + 0x1c], eax
mov esi, dword [esi + 0xd4]
test esi, esi
je 0x425166
push esi
call dword [0x46b29c]
push dword [ebp - 0x10]
call fcn.00458ad6
xor al, al
jmp 0x425191
and dword [esi + 0x18], 0
mov esi, dword [esi + 0xd4]
test esi, esi
je 0x425187
push esi
call dword [0x46b29c]
push dword [ebp - 0x10]
call fcn.00458ad6
mov al, 1
pop ecx
pop esi
leave
ret 4
Function at 0x40280c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402849
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402869
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403d84
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x4029d4
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 0x402a03
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.00403c3c
jmp 0x402a21
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004028fc
mov edi, eax
test ebx, ebx
je 0x402a21
cmp dword [esi], 0
je 0x402a21
dec ebx
jmp 0x402a0a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d34
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 0x402dcc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402dac
xor eax, eax
push ebp
push 0x402da5
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 0x402de8
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 0x402dac
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 0x4050cc
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 0x405288
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40512d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4052a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40519f
xor eax, eax
push ebp
push 0x405198
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]
call fcn.00404f24
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405181
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4052c4
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 0x40519f
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 0x405280
cmp byte [ebp - 0xd], 0
jne 0x4051e1
cmp byte [ebp - 0x12], 0
je 0x405280
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4051fa
dec ebx
cmp byte [ebx], 0x2e
je 0x405209
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4051f9
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405280
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405236
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 0x405280
cmp byte [ebp - 0xd], 0
je 0x405280
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 0x405280
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 0x405844
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405874
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x40586a
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004027e4
or eax, 0xffffffff
jmp 0x405868
mov eax, 0x67
call fcn.004027d4
or eax, 0xffffffff
jmp 0x405868
Function at 0x408e48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408e81
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403c3c
jmp 0x408e8a
mov eax, ebx
mov edx, esi
call fcn.00403ba8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408e94
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408eb5
mov al, byte [esp]
jmp 0x408eb7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4143f4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4143fa
ret

Function at 0x416b5c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x416bad
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x416b94
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x416b84
jmp 0x416bad
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x416b95
pop ebx
mov esp, ebp
pop ebp
ret