joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43463b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x21c
mov eax, 0x5642f1
call fcn.0053da79
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x4347b7
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], ebx
je 0x4347b7
call fcn.00438647
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042a80d
mov byte [ebp - 4], 2
call fcn.00438647
push eax
lea ecx, [ebp - 0x224]
call fcn.0042a80d
mov byte [ebp - 4], 3
push dword [ebp + 8]
lea eax, [ebp - 0x224]
push str.SOFTWAREEPSONEPSON_Scan_s
push eax
call fcn.0040a7c3
mov esi, dword [ebp - 0x224]
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 1
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4346ed
lea ecx, [esi - 0x10]
call fcn.00402722
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
jmp 0x4347ba
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00539100
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push str.Supported
push dword [ebp - 0x220]
mov dword [ebp - 0x228], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x220]
test eax, eax
je 0x434748
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4346cc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
call fcn.00538bc9
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004023c0
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.0040f067
lea ecx, [esi - 0x10]
cmp eax, 0xffffffff
je 0x4346cf
call fcn.00402722
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402722
xor eax, eax
inc eax
jmp 0x4347cc
lea ecx, [eax - 0x10]
call fcn.00402722
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402722
xor eax, eax
call fcn.0053dafc
ret 8

Function at 0x435bef
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x560b7f
call fcn.0053da10
xor edi, edi
inc edi
push edi
push 0x1a
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00438647
push eax
lea ecx, [ebp - 0x10]
call fcn.0042a80d
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x5996a0
push eax
call fcn.0040a7c3
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x435c3d
xor edi, edi
lea ecx, [eax - 0x10]
call fcn.00402722
mov eax, edi
call fcn.0053dae8
ret
Function at 0x435c4d
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x238
mov eax, 0x5642a3
call fcn.0053da79
xor ebx, ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], ebx
call fcn.0043a735
xor eax, eax
mov byte [ebp - 4], 1
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00539100
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x59ed04
push eax
call fcn.0043816d
add esp, 0x18
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.0043a7dc
cmp eax, ebx
jne 0x435cdc
xor esi, esi
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], bl
call fcn.0043a767
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402722
mov eax, esi
call fcn.0053dafc
ret
lea ecx, [ebp - 0x240]
call fcn.0043a387
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x220], eax
call fcn.0043a6f7
test eax, eax
jne 0x435da4
call fcn.00438647
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042a80d
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 2
call fcn.0043aab8
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x21c]
push dword [ebp + 8]
push str._s_s
push eax
call fcn.0040a7c3
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00402722
mov eax, dword [ebp - 0x240]
push 0x10
lea ecx, [ebp - 0x240]
call dword [eax + 0x38]
mov esi, dword [ebp - 0x21c]
test eax, eax
je 0x435d91
push ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x244], esp
mov edi, esp
push eax
call fcn.00402431
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.00435c4d
pop ecx
jmp 0x435d98
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.00402722
cmp dword [ebp - 0x220], ebx
jne 0x435cdc
lea ecx, [ebp - 0x240]
call fcn.0043a2a1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
inc esi
jmp 0x435cbb
Function at 0x6ad95ad0
Capabilities:
Check for software breakpoints

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x10
cmp dword [eax + 0x14], 0xcc
je 0x6ad9582a
mov eax, dword [eax + 0x180]
mov dword [esp], ebx
call dword [eax]
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x14], 0xcc
mov eax, dword [ebx + 0x180]
cmp byte [eax + 8], 0
je 0x6ad958be
mov esi, dword [ebx + 0x78]
lea edi, [ebx + 0x78]
jmp 0x6ad95880
mov eax, dword [ebx + 8]
test eax, eax
je 0x6ad95857
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [esp], ebx
call dword [eax]
mov esi, dword [ebx + 0x78]
mov eax, dword [ebx + 0x184]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [eax + 4]
mov eax, dword [ebx + 0x78]
cmp eax, esi
je 0x6ad958b5
mov esi, eax
mov edx, dword [ebx + 0x60]
cmp edx, esi
ja 0x6ad95842
mov eax, dword [ebx + 0x180]
mov dword [esp], ebx
call dword [eax + 4]
mov eax, dword [ebx + 0x180]
mov dword [esp], ebx
call dword [eax]
mov eax, dword [ebx + 0x180]
mov dword [ebx + 0x78], 0
cmp byte [eax + 8], 0
je 0x6ad958be
xor esi, esi
jmp 0x6ad95880
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
cmp byte [ebx + 0x41], 1
sbb eax, eax
add eax, 0xce
mov dword [ebx + 0x14], eax
mov eax, 1
jmp 0x6ad958b7
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
cmp eax, 0xca
je 0x6ad95b10
cmp eax, 0xcb
je 0x6ad95b29
cmp eax, 0xcc
je 0x6ad95b03
mov edx, dword [ebx]
mov dword [edx + 0x18], eax
mov eax, dword [ebx]
mov dword [edx + 0x14], 0x14
mov dword [esp], ebx
call dword [eax]
add esp, 0x18
mov eax, ebx
pop ebx
jmp 0x6ad95800
mov dword [esp], ebx
call sym.libjpeg_62.dll_linit_master_decompress
cmp byte [ebx + 0x40], 0
jne 0x6ad95ba0
mov dword [ebx + 0x14], 0xcb
mov eax, dword [ebx + 0x190]
cmp byte [eax + 0x10], 0
je 0x6ad95b83
mov edx, dword [ebx + 8]
test edx, edx
je 0x6ad95b41
mov dword [esp], ebx
call dword [edx]
mov eax, dword [ebx + 0x190]
mov dword [esp], ebx
call dword [eax]
test eax, eax
je 0x6ad95b97
cmp eax, 2
je 0x6ad95b83
mov edx, dword [ebx + 8]
test edx, edx
je 0x6ad95b41
and eax, 0xfffffffd
cmp eax, 1
jne 0x6ad95b38
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
add eax, 1
cmp eax, ecx
mov dword [edx + 4], eax
jl 0x6ad95b38
add ecx, dword [ebx + 0x11c]
test edx, edx
mov dword [edx + 8], ecx
jne 0x6ad95b3c
jmp 0x6ad95b41
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x84], eax
add esp, 0x18
mov eax, ebx
pop ebx
jmp 0x6ad95800
xor eax, eax
add esp, 0x18
pop ebx
ret
mov dword [ebx + 0x14], 0xcf
mov eax, 1
jmp 0x6ad95b99
Function at 0x6ad96380
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edx, dword [eax + 0x14]
cmp edx, 0xcc
jne 0x6ad963c4
test ebx, ebx
mov edx, 1
cmovle ebx, edx
mov edx, dword [eax + 0x190]
cmp byte [edx + 0x11], 0
je 0x6ad963b5
mov edx, dword [eax + 0x7c]
cmp ebx, edx
cmovg ebx, edx
mov dword [eax + 0x84], ebx
add esp, 0x18
pop ebx
jmp 0x6ad95800
cmp edx, 0xcf
je 0x6ad96397
mov ecx, dword [eax]
mov dword [esp + 0xc], eax
mov dword [ecx + 0x18], edx
mov edx, dword [eax]
mov dword [ecx + 0x14], 0x14
mov dword [esp], eax
call dword [edx]
mov eax, dword [esp + 0xc]
jmp 0x6ad96397
Function at 0x6adadc70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x2c
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax]
cmp dword [esi + 0x64], 3
mov dword [esi + 0x1a8], eax
mov ebp, eax
mov dword [eax], 0x6adac5a0
mov dword [eax + 0xc], 0x6adac590
mov dword [eax + 0x20], 0
mov dword [eax + 0x28], 0
je 0x6adadcca
mov eax, dword [esi]
mov dword [eax + 0x14], 0x2f
mov dword [esp], esi
call dword [eax]
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax]
mov dword [ebp + 0x18], eax
mov edi, eax
jmp 0x6adadcf3
mov edi, dword [ebp + 0x18]
mov eax, dword [esi + 4]
add edi, ebx
add ebx, 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax + 4]
cmp ebx, 0x80
mov dword [edi], eax
jne 0x6adadcf0
mov byte [ebp + 0x1c], 1
cmp byte [esi + 0x5a], 0
je 0x6adadd82
mov ebx, dword [esi + 0x54]
cmp ebx, 7
jle 0x6adaddc7
cmp ebx, 0x100
jle 0x6adadd50
mov eax, dword [esi]
mov dword [eax + 0x14], 0x39
mov dword [eax + 0x18], 0x100
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
mov eax, dword [esi + 4]
mov dword [esp + 0xc], 3
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax + 8]
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x6adadd90
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x4c]
mov dword [ebp + 0x10], 0
test eax, eax
je 0x6adadd7a
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 4]
mov dword [esi + 0x4c], 2
mov dword [esp], esi
lea eax, [eax + eax*2]
lea eax, [eax + eax + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call dword [edx + 4]
mov dword [ebp + 0x20], eax
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.6adac3b0
mov eax, dword [esi]
mov dword [eax + 0x14], 0x38
mov dword [eax + 0x18], 8
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
jmp 0x6adadd50
Function at 0x6adaf3e0
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 0x24
mov esi, dword [esp + 0x30]
mov dword [esi + 4], 0
mov dword [esp], esi
call sym.libjpeg_62.dll_lpeg_mem_init
mov dword [esp + 4], 0x54
mov dword [esp], esi
mov dword [esp + 0x1c], eax
call sym.libjpeg_62.dll_lpeg_get_small
test eax, eax
mov ebx, eax
je 0x6adaf510
mov eax, dword [esp + 0x1c]
mov dword [ebx], fcn.6adadee0
mov dword [ebx + 4], 0x6adae200
mov dword [ebx + 8], fcn.6adae9f0
mov dword [ebx + 0xc], fcn.6adaec50
mov dword [ebx + 0x10], 0x6adaf240
mov dword [ebx + 0x14], 0x6adaf0a0
mov dword [ebx + 0x18], 0x6adaee80
mov dword [ebx + 0x1c], 0x6adae6a0
mov dword [ebx + 0x20], 0x6adae330
mov dword [ebx + 0x24], fcn.6adae070
mov dword [ebx + 0x28], 0x6adae1a0
mov dword [ebx + 0x30], 0x3b9aca00
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0x54
mov dword [esi + 4], ebx
mov dword [esp], 0x6add9900
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6adaf4f6
lea edx, [esp + 0x18]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], str._ld_c
mov dword [esp], eax
mov byte [esp + 0x18], 0x78
call sub.msvcrt.dll_sscanf
test eax, eax
jle 0x6adaf4f6
movzx eax, byte [esp + 0x18]
and eax, 0xffffffdf
cmp al, 0x4d
je 0x6adaf500
mov eax, dword [esp + 0x1c]
imul eax, eax, 0x3e8
mov dword [ebx + 0x2c], eax
add esp, 0x24
pop ebx
pop esi
ret
imul eax, dword [esp + 0x1c], 0x3e8
jmp 0x6adaf4ed
mov dword [esp], esi
call sym.libjpeg_62.dll_lpeg_mem_term
mov eax, dword [esi]
mov dword [eax + 0x14], 0x36
mov dword [eax + 0x18], 0
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
jmp 0x6adaf416
Function at 0x6adb2970
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, 0x40
sub esp, 0x1c
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 4]
mov dword [esp + 8], 0xc0
mov dword [esp + 4], 1
mov dword [esp], ebp
call dword [eax]
lea edi, [eax + 0x3c]
mov edx, eax
test edi, 1
mov dword [ebp + 0x198], eax
mov dword [eax], 0x6adb16d0
jne 0x6adb2ae6
test edi, 2
jne 0x6adb2b00
mov ecx, ebx
xor eax, eax
shr ecx, 2
test bl, 2
rep stosd dword es:[edi], eax
je 0x6adb29d8
xor eax, eax
add edi, 2
mov word [edi - 2], ax
and ebx, 1
je 0x6adb29e0
mov byte [edi], 0
lea edi, [edx + 0x7c]
mov ebx, 0x40
test edi, 1
jne 0x6adb2b11
test edi, 2
jne 0x6adb2ad5
mov ecx, ebx
xor eax, eax
shr ecx, 2
test bl, 2
rep stosd dword es:[edi], eax
je 0x6adb2a17
xor esi, esi
add edi, 2
mov word [edi - 2], si
and ebx, 1
je 0x6adb2a1f
mov byte [edi], 0
mov byte [edx + 0xbc], 0x71
cmp byte [ebp + 0xc8], 0
jne 0x6adb2a37
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 1
mov dword [esp], ebp
shl eax, 8
mov dword [esp + 8], eax
call dword [edx]
mov ebx, dword [ebp + 0x24]
test ebx, ebx
mov dword [ebp + 0x8c], eax
mov edx, eax
jle 0x6adb2a2f
xor esi, esi
mov eax, 0xffffffff
jmp 0x6adb2aa6
test edi, 2
jne 0x6adb2ac4
mov ecx, ebx
shr ecx, 2
test bl, 2
rep stosd dword es:[edi], eax
je 0x6adb2a90
mov ecx, 0xffffffff
add edi, 2
mov word [edi - 2], cx
and ebx, 1
je 0x6adb2a98
mov byte [edi], 0xff
add edx, 0x100
add esi, 1
cmp dword [ebp + 0x24], esi
jle 0x6adb2a2f
test dl, 1
mov edi, edx
mov ebx, 0x100
je 0x6adb2a70
lea edi, [edx + 1]
mov bx, 0xff
test edi, 2
mov byte [edx], 0xff
je 0x6adb2a78
mov ecx, 0xffffffff
add edi, 2
mov word [edi - 2], cx
sub ebx, 2
jmp 0x6adb2a78
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub ebx, 2
jmp 0x6adb2a00
lea edi, [eax + 0x3d]
mov bl, 0x3f
test edi, 2
mov byte [eax + 0x3c], 0
je 0x6adb29c1
nop
lea esi, [esi]
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub ebx, 2
jmp 0x6adb29c1
mov byte [edx + 0x7c], 0
lea edi, [edx + 0x7d]
mov bl, 0x3f
jmp 0x6adb29f4
Function at 0x6adb2b20
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
sub esp, 0x14
call fcn.6adb3d50
mov dword [esp], str.JSIMD_FORCEMMX
mov dword [0x6adc6004], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6adb2b53
mov edi, 0x6add9b0f
mov ecx, 2
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x6adb2c50
mov dword [esp], str.JSIMD_FORCE3DNOW
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6adb2b77
mov edi, 0x6add9b0f
mov ecx, 2
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x6adb2c40
mov dword [esp], str.JSIMD_FORCESSE
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6adb2b9b
mov edi, 0x6add9b0f
mov ecx, 2
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x6adb2c30
mov dword [esp], str.JSIMD_FORCESSE2
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6adb2bbb
mov edi, 0x6add9b0f
mov ecx, 2
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x6adb2c20
mov dword [esp], str.JSIMD_FORCENONE
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6adb2bdb
mov edi, 0x6add9b0f
mov ecx, 2
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x6adb2c10
mov dword [esp], str.JSIMD_NOHUFFENC
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6adb2c05
mov edi, 0x6add9b0f
mov ecx, 2
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x6adb2c05
mov dword [section..data], 0
add esp, 0x14
pop esi
pop edi
ret
mov dword [0x6adc6004], 0
jmp 0x6adb2bdb
and dword [0x6adc6004], 8
jmp 0x6adb2bbb
and dword [0x6adc6004], 5
jmp 0x6adb2b9b
and dword [0x6adc6004], 3
jmp 0x6adb2b77
and dword [0x6adc6004], 1
jmp 0x6adb2b53

Function at 0x6adc4ca0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], 0x6adea5d4
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.6adc4d00
Function at 0x6adc5400
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6adf23a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6adf23bc]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 4
test ebx, ebx
je 0x6adc5455
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6adc544e
test esi, esi
je 0x6adc544e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6adc5430
mov dword [esp], 0x6adf23a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6adc5640
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x6adc5650
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x6adc564d
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret

Function at 0x6adc5670
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x6adc56a8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x6adc569e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x6adc56aa
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x6adc5690
xor eax, eax
pop ebx
pop esi
ret
Function at 0x407368
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a84c
test esi, esi
jne 0x40739e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a9e4
jmp 0x4073bc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407248
mov edi, eax
test esi, esi
je 0x4073bc
cmp dword [ebx], 0
je 0x4073bc
dec esi
jmp 0x4073a5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409494
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409954
mov byte [esp], al
cmp byte [esp], 0
jne 0x40961d
test edi, edi
je 0x40961d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40955d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409538
cmp edi, 0xffffffff
je 0x4094f9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4094f9
mov byte [esp], 0
jmp 0x40961d
cmp dword [esi], 1
jg 0x409538
cmp dword [esi], 0
jne 0x40952a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40952a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40961d
lea eax, [esp + 0xc]
call fcn.00409144
dec ebp
test ebp, ebp
jg 0x4094de
cmp edi, 0xffffffff
je 0x40955d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40955b
mov byte [esp], 0
jmp 0x40961d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4094a2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40955d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409698
mov edx, eax
mov ebx, dword [0x4d28f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4095c1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4095bf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4095c1
xor edi, edi
cmp byte [esp], 0
je 0x4095e7
mov ebx, dword [esi]
test bl, 1
jne 0x4095fd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4095c7
mov byte [esp + 1], 1
jmp 0x4095fd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4095e7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409574
cmp byte [esp], 0
je 0x40961d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a4e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d2058], 0
je 0x40a54b
cmp word [0x4d2344], 0xd7b2
jne 0x40a50d
cmp dword [0x4d234c], 0
jbe 0x40a50d
mov eax, 0x4d2340
call dword [0x4d235c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40a578
call fcn.0040b0b8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ce02e], 0
jne 0x40a567
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a70c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4ce030], 0
je 0x40a737
mov edx, edi
mov eax, esi
call dword [0x4ce030]
mov ebx, eax
jmp 0x40a748
mov eax, 8
call fcn.00406f80
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d2059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a6d4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a778
mov eax, ebx
call fcn.00406f9c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40debc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40e023
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a84c
cmp si, word [0x4cea08]
jb 0x40df54
cmp si, word [0x4cec08]
ja 0x40df54
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40df54
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4cea08]
jae 0x40df2e
mov edi, ebx
dec edi
jmp 0x40df4f
cmp si, word [ebx*8 + 0x4cea08]
jbe 0x40df3e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40df4f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4cea0c]
call fcn.0040ddd8
jmp 0x40df54
cmp edi, dword [ebp - 8]
jae 0x40df18
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e003
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e003
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b3a8
push dword [ebp - 0x160]
push 0x40e040
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b3a8
push dword [ebp - 0x164]
push 0x40e050
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b3a8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b5e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e02a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a8ac
pop eax
jmp eax